- func Serve(host string, handler Function, timeout int) error
- func Serve1(host string, handler Function, timeout int) error
- type Client
- type Function
- type Server
Serve starts a remote function server. Incomming requests should be handled by the given Function. This version of Serve doesn't work with AddRoute.
Client represents a the client side of a remote function (also known as a remote procedure call).
Call makes a request and returns the response. It dials the host if not connected.
Function is the prototype of functions to be server by ogdlrf.Serve
Server hold the state of the server side of a remote function.
AddRoute associates a handler function with the given path. A path in this context is the first child of the incomming request.