SDK
SDK Golang v3.x
2

List #

Gets the complete list of indexes handled by Kuzzle.

Arguments #

List(options types.QueryOptions) ([]string, error)
ArgumentsTypeDescription
options
QueryOptions
Query options

Options #

Additional query options

OptionTypeDescriptionDefault
queuable
bool
Make this request queuable or nottrue

Return #

Returns an Array of strings containing the list of indexes names present in Kuzzle or an error

Usage #

indexes, err := kuzzle.Index.List(nil)
if err != nil {
  log.Fatal(err)
} else {
  fmt.Printf("Kuzzle contains %d indexes", len(indexes))
}