rpc/registry/registry.go

11 lines
203 B
Go
Raw Normal View History

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