Info #
Returns information about Kuzzle: available API (base + extended), plugins, external services (Redis, Elasticsearch, ...), servers, etc.
Arguments #
func (s* Server) Info(options types.QueryOptions) (json.RawMessage, error)
Arguments | Type | Description |
---|---|---|
options | types.QueryOptions | An object containing query options. |
Options #
Additional query options
Option | Type | Description | Default |
---|---|---|---|
Queuable | bool | If true, queues the request during downtime, until connected to Kuzzle again | true |
Return #
Returns server informations as a json.RawMessage
or a KuzzleError
. See how to handle error.
Usage #
info, err := kuzzle.Server.Info(nil)
if err != nil {
log.Fatal(err)
} else {
fmt.Println("Kuzzle Server information as JSON string:", string(info))
}
Edit this page on Github(opens new window)