// RPC is used to make an RPC call to the Consul servers
// This allows the agent to implement the Consul.Interface
RPC is used to make an RPC call to the Consul servers
This allows the agent to implement the Consul.Interface
// RPC is used to make an RPC call to the Consul servers // This allows the agent to implement the Consul . Interface
func (a *Agent) RPC(method string, args interface{}, reply interface{}) error {
	if a.server != nil {
		return a.server.RPC(method, args, reply)
	}
	return a.client.RPC(method, args, reply)
}
func ( a * Agent ) RPC ( method string , args interface { } , reply interface { } ) error { if a . server != nil { return a . server . RPC ( method , args , reply ) } return a . client . RPC ( method , args , reply ) }
RPC is used to make an RPC call to the Consul servers
This allows the agent to implement the Consul.Interface
RPC is used to make an RPC call to the Consul servers This allows the agent to implement the Consul . Interface