rpc/registry/registry.go

11 lines
203 B
Go
Raw Normal View History

2017-12-01 07:29:32 +00:00
package registry
2017-10-25 14:52:47 +00:00
import (
2017-10-26 07:21:35 +00:00
"git.loafle.net/commons_go/rpc/protocol"
2017-10-25 14:52:47 +00:00
)
2017-12-01 07:48:40 +00:00
type RPCInvoker interface {
2017-10-25 14:52:47 +00:00
HasMethod(method string) bool
2017-12-01 07:48:40 +00:00
Invoke(codec protocol.RegistryCodec) (result interface{}, err error)
2017-10-25 14:52:47 +00:00
}