rpc/registry/rpc_gateway.go
crusader 81d3fff70a ing
2017-12-01 16:48:40 +09:00

19 lines
340 B
Go

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")
}