1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00
go-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
}