2015-01-13 23:31:27 +00:00
|
|
|
package server
|
|
|
|
|
2015-05-23 17:40:53 +01:00
|
|
|
type rpcReceiver struct {
|
2015-01-13 23:31:27 +00:00
|
|
|
name string
|
|
|
|
handler interface{}
|
|
|
|
}
|
|
|
|
|
2015-05-23 17:40:53 +01:00
|
|
|
func newRpcReceiver(name string, handler interface{}) Receiver {
|
|
|
|
return &rpcReceiver{
|
2015-01-13 23:31:27 +00:00
|
|
|
name: name,
|
|
|
|
handler: handler,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-23 17:40:53 +01:00
|
|
|
func (r *rpcReceiver) Name() string {
|
2015-01-13 23:31:27 +00:00
|
|
|
return r.name
|
|
|
|
}
|
|
|
|
|
2015-05-23 17:40:53 +01:00
|
|
|
func (r *rpcReceiver) Handler() interface{} {
|
2015-01-13 23:31:27 +00:00
|
|
|
return r.handler
|
|
|
|
}
|