echoservice

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2012 License: BSD-3-Clause Imports: 5 Imported by: 0

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

type EchoService interface {
	Echo(in *Payload, out *Payload) error
}

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.

type Payload

type Payload struct {
	Message          *string `protobuf:"bytes,1,req,name=message" json:"message,omitempty"`
	XXX_unrecognized []byte  `json:",omitempty"`
}

func (*Payload) Reset

func (this *Payload) Reset()

func (*Payload) String

func (this *Payload) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL