rpc/gateway/server_handlers.go
crusader 8c1c86f021 ing
2017-11-09 17:46:44 +09:00

22 lines
416 B
Go

package gateway
import (
"context"
"errors"
"git.loafle.net/commons_go/rpc"
)
type ServerHandlers struct {
rpc.ServerHandlers
}
func (sh *ServerHandlers) Invoke(ctx context.Context, method string, params []string) (result interface{}, err error) {
return nil, errors.New("Server: Handler method[Invoke] of Server is not implement")
}
func (sh *ServerHandlers) Validate() {
sh.ServerHandlers.Validate()
}