GetConfig #
Returns the current Kuzzle configuration.
This route should only be accessible to administrators, as it might return sensitive information about the backend.
Arguments #
func (s *Server) GetConfig(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 configuration as a json.RawMessage
or a KuzzleError
. See how to handle error.
Usage #
conf, err := kuzzle.Server.GetConfig(nil)
if err != nil {
log.Fatal(err)
} else {
fmt.Println("Kuzzle Server configuration as JSON string:", string(conf))
}
Edit this page on Github(opens new window)