mirror of https://github.com/status-im/consul.git
agent: Add reload to RPC clien
This commit is contained in:
parent
590bce9f00
commit
f76c769b89
|
@ -197,6 +197,15 @@ func (c *RPCClient) Stats() (map[string]map[string]string, error) {
|
|||
return resp, err
|
||||
}
|
||||
|
||||
// Reload is used to trigger a configuration reload
|
||||
func (c *RPCClient) Reload() error {
|
||||
header := requestHeader{
|
||||
Command: reloadCommand,
|
||||
Seq: c.getSeq(),
|
||||
}
|
||||
return c.genericRPC(&header, nil, nil)
|
||||
}
|
||||
|
||||
type monitorHandler struct {
|
||||
client *RPCClient
|
||||
closed bool
|
||||
|
|
Loading…
Reference in New Issue