16 lines
465 B
Go
16 lines
465 B
Go
package reachview
|
|
|
|
const (
|
|
eventGetConfiguration = "get configuration"
|
|
eventCurrentConfiguration = "current configuration"
|
|
)
|
|
|
|
// Configuration fetches and return the current configuration of the ReachRS module
|
|
func (r *Client) Configuration() (*Configuration, error) {
|
|
configuration := &Configuration{}
|
|
if err := r.ReqResp(eventGetConfiguration, nil, eventCurrentConfiguration, configuration); err != nil {
|
|
return nil, err
|
|
}
|
|
return configuration, nil
|
|
}
|