Documentation ¶
Index ¶
- type Client
- func (c *Client) Find(ctx context.Context, req *FindRequest) (*FindResponse, error)
- func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)
- func (c *Client) ServiceReload(ctx context.Context, req *ServiceReloadRequest) (*ServiceReloadResponse, error)
- func (c *Client) ServiceRestart(ctx context.Context, req *ServiceRestartRequest) (*ServiceRestartResponse, error)
- func (c *Client) ServiceStart(ctx context.Context, req *ServiceStartRequest) (*ServiceStartResponse, error)
- func (c *Client) ServiceState(ctx context.Context, req *ServiceStateRequest) (*ServiceStateResponse, error)
- func (c *Client) ServiceStop(ctx context.Context, req *ServiceStopRequest) (*ServiceStopResponse, error)
- type FindRequest
- type FindResponse
- type HTTPClient
- type IndexRequest
- type IndexResponse
- type ServiceReloadRequest
- type ServiceReloadResponse
- type ServiceRestartRequest
- type ServiceRestartResponse
- type ServiceStartRequest
- type ServiceStartResponse
- type ServiceStateRequest
- type ServiceStateResponse
- type ServiceStopRequest
- type ServiceStopResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(c HTTPClient) *Client
func (*Client) Find ¶
func (c *Client) Find(ctx context.Context, req *FindRequest) (*FindResponse, error)
Find Directory index
func (*Client) Index ¶
func (c *Client) Index(ctx context.Context, req *IndexRequest) (*IndexResponse, error)
Index Service list.
func (*Client) ServiceReload ¶
func (c *Client) ServiceReload(ctx context.Context, req *ServiceReloadRequest) (*ServiceReloadResponse, error)
ServiceReload Reload service. Falls back to restart if service cannot be reloaded.
func (*Client) ServiceRestart ¶
func (c *Client) ServiceRestart(ctx context.Context, req *ServiceRestartRequest) (*ServiceRestartResponse, error)
ServiceRestart Hard restart service. Use reload if you want to reduce interruptions.
func (*Client) ServiceStart ¶
func (c *Client) ServiceStart(ctx context.Context, req *ServiceStartRequest) (*ServiceStartResponse, error)
ServiceStart Start service.
func (*Client) ServiceState ¶
func (c *Client) ServiceState(ctx context.Context, req *ServiceStateRequest) (*ServiceStateResponse, error)
ServiceState Read service properties
func (*Client) ServiceStop ¶
func (c *Client) ServiceStop(ctx context.Context, req *ServiceStopRequest) (*ServiceStopResponse, error)
ServiceStop Stop service.
type FindRequest ¶
type FindResponse ¶
type FindResponse []*struct { Subdir string `url:"subdir",json:"subdir"` }
type HTTPClient ¶
type IndexRequest ¶
type IndexRequest struct {
Node string `url:"node",json:"node"` // The cluster node name.
}
type IndexResponse ¶
type IndexResponse []*map[string]interface{}
type ServiceReloadRequest ¶
type ServiceReloadResponse ¶
type ServiceReloadResponse string
type ServiceRestartRequest ¶
type ServiceRestartResponse ¶
type ServiceRestartResponse string
type ServiceStartRequest ¶
type ServiceStartResponse ¶
type ServiceStartResponse string
type ServiceStateRequest ¶
type ServiceStateResponse ¶
type ServiceStateResponse map[string]interface{}
type ServiceStopRequest ¶
type ServiceStopResponse ¶
type ServiceStopResponse string
Click to show internal directories.
Click to hide internal directories.