micro/server/rpc_receiver.go
2015-05-23 17:40:53 +01:00

22 lines
334 B
Go

package server
type rpcReceiver struct {
name string
handler interface{}
}
func newRpcReceiver(name string, handler interface{}) Receiver {
return &rpcReceiver{
name: name,
handler: handler,
}
}
func (r *rpcReceiver) Name() string {
return r.name
}
func (r *rpcReceiver) Handler() interface{} {
return r.handler
}