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 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.
Click to show internal directories.
Click to hide internal directories.