2017-11-02 06:39:30 +00:00
|
|
|
package gateway
|
|
|
|
|
|
|
|
import (
|
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-08 06:35:27 +00:00
|
|
|
func (sh *ServerHandlers) Invoke(method string, params []byte) (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()
|
|
|
|
}
|