Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServeEchoService ¶
func ListenAndServeEchoService(addr string, backend EchoService) error
ListenAndServeEchoService serves the given EchoService backend implementation on all connections accepted as a result of listening on addr (TCP).
func RegisterEchoServiceWeb ¶ added in v1.1.0
func RegisterEchoServiceWeb(this EchoServiceWeb, mux webrpc.ServeMux) error
Register a EchoServiceWeb implementation with the given webrpc ServeMux. If mux is nil, the default webrpc.ServeMux is used.
func ServeEchoService ¶
func ServeEchoService(conn net.Conn, backend EchoService) error
ServeEchoService serves the given EchoService backend implementation on conn.
Types ¶
type EchoService ¶
EchoService is an interface satisfied by the generated client and which must be implemented by the object wrapped by the server.
func DialEchoService ¶
func DialEchoService(addr string) (EchoService, error)
DialEchoService returns a EchoService for calling the EchoService servince at addr (TCP).
func NewEchoServiceClient ¶
func NewEchoServiceClient(conn net.Conn) EchoService
NewEchoServiceClient returns an *rpc.Client wrapper for calling the methods of EchoService remotely.
func NewEchoServiceWebClient ¶ added in v1.1.0
func NewEchoServiceWebClient(pro webrpc.Protocol, remote *url.URL) EchoService
NewEchoServiceWebClient returns a webrpc wrapper for calling the methods of EchoService remotely via the web. The remote URL is the base URL of the webrpc server.
type EchoServiceWeb ¶ added in v1.1.0
EchoServiceWeb is the web-based RPC version of the interface which must be implemented by the object wrapped by the webrpc server.
type Payload ¶
type Payload struct { Message *string `protobuf:"bytes,1,req,name=message" json:"message,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Payload) GetMessage ¶
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()