NewFunction which creates a Function with a given Handler Deprecated: The Function type is public for the go1.x runtime internal use of the net/rpc package
(handler Handler)
| 56 | // |
| 57 | // Deprecated: The Function type is public for the go1.x runtime internal use of the net/rpc package |
| 58 | func NewFunction(handler Handler) *Function { |
| 59 | return &Function{newHandler(handler)} |
| 60 | } |
| 61 | |
| 62 | // Ping method which given a PingRequest and a PingResponse parses the PingResponse |
| 63 | func (fn *Function) Ping(req *messages.PingRequest, response *messages.PingResponse) error { |
searching dependent graphs…