rpc/registry/rpc_gateway.go

19 lines
340 B
Go
Raw Normal View History

2017-12-01 07:48:40 +00:00
package registry
import (
"fmt"
"git.loafle.net/commons_go/rpc/protocol"
)
type RPCGateway struct {
}
func (rg *RPCGateway) HasMethod(method string) bool {
return false
}
func (rg *RPCGateway) Invoke(codec protocol.RegistryCodec) (result interface{}, err error) {
return nil, fmt.Errorf("RPC Gateway: Invoke is not implemented")
}