github.com/Iqoqo/consul@v1.4.5/agent/cache-types/rpc.go (about) 1 package cachetype 2 3 //go:generate mockery -all -inpkg 4 5 // RPC is an interface that an RPC client must implement. This is a helper 6 // interface that is implemented by the agent delegate so that Type 7 // implementations can request RPC access. 8 type RPC interface { 9 RPC(method string, args interface{}, reply interface{}) error 10 }