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