rpc/gateway/server_handlers.go

22 lines
416 B
Go
Raw Normal View History

2017-11-02 06:39:30 +00:00
package gateway
import (
2017-11-09 08:46:44 +00:00
"context"
2017-11-08 06:35:27 +00:00
"errors"
2017-11-02 06:39:30 +00:00
2017-11-08 06:35:27 +00:00
"git.loafle.net/commons_go/rpc"
2017-11-02 06:39:30 +00:00
)
type ServerHandlers struct {
2017-11-08 06:35:27 +00:00
rpc.ServerHandlers
2017-11-02 06:39:30 +00:00
}
2017-11-09 08:46:44 +00:00
func (sh *ServerHandlers) Invoke(ctx context.Context, method string, params []string) (result interface{}, err error) {
2017-11-02 06:39:30 +00:00
2017-11-08 06:35:27 +00:00
return nil, errors.New("Server: Handler method[Invoke] of Server is not implement")
2017-11-02 06:39:30 +00:00
}
func (sh *ServerHandlers) Validate() {
sh.ServerHandlers.Validate()
}