func (client *Client) GetIndexSetsContext(
	ctx context.Context, skip, limit int, stats bool,
) ([]graylog.IndexSet, map[string]graylog.IndexSetStats, int, *ErrorInfo, error) {
	indexSets := &graylog.IndexSetsBody{}
	v := url.Values{
		"skip":  []string{strconv.Itoa(skip)},
		"limit": []string{strconv.Itoa(limit)},
		"stats": []string{strconv.FormatBool(stats)},
	}
	u := fmt.Sprintf("%s?%s", client.Endpoints().IndexSets(), v.Encode())
	ei, err := client.callGet(
		ctx, u, nil, indexSets)
	return indexSets.IndexSets, indexSets.Stats, indexSets.Total, ei, err
}
// GetIndexSetsContext returns a list of all index sets with a context.
GetIndexSetsContext returns a list of all index sets with a context.
// GetIndexSetsContext returns a list of all index sets with a context .
func (client *Client) GetIndexSetsContext(
	ctx context.Context, skip, limit int, stats bool,
) ([]graylog.IndexSet, map[string]graylog.IndexSetStats, int, *ErrorInfo, error) {
	indexSets := &graylog.IndexSetsBody{}
	v := url.Values{
		"skip":  []string{strconv.Itoa(skip)},
		"limit": []string{strconv.Itoa(limit)},
		"stats": []string{strconv.FormatBool(stats)},
	}
	u := fmt.Sprintf("%s?%s", client.Endpoints().IndexSets(), v.Encode())
	ei, err := client.callGet(
		ctx, u, nil, indexSets)
	return indexSets.IndexSets, indexSets.Stats, indexSets.Total, ei, err
}
func ( client * Client ) GetIndexSetsContext ( ctx context . Context , skip , limit int , stats bool , ) ( [ ] graylog . IndexSet , map [ string ] graylog . IndexSetStats , int , * ErrorInfo , error ) { indexSets := & graylog . IndexSetsBody { } v := url . Values { " " : [ ] string { strconv . Itoa ( skip ) } , " " : [ ] string { strconv . Itoa ( limit ) } , " " : [ ] string { strconv . FormatBool ( stats ) } , } u := fmt . Sprintf ( " " , client . Endpoints ( ) . IndexSets ( ) , v . Encode ( ) ) ei , err := client . callGet ( ctx , u , nil , indexSets ) return indexSets . IndexSets , indexSets . Stats , indexSets . Total , ei , err }
GetIndexSetsContext returns a list of all index sets with a context.
GetIndexSetsContext returns a list of all index sets with a context .