echoservice

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEchoServiceServer

func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)

Types

type EchoEnvelope

type EchoEnvelope struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EchoEnvelope) Descriptor

func (*EchoEnvelope) Descriptor() ([]byte, []int)

func (*EchoEnvelope) GetMessage

func (m *EchoEnvelope) GetMessage() string

func (*EchoEnvelope) ProtoMessage

func (*EchoEnvelope) ProtoMessage()

func (*EchoEnvelope) Reset

func (m *EchoEnvelope) Reset()

func (*EchoEnvelope) String

func (m *EchoEnvelope) String() string

func (*EchoEnvelope) XXX_DiscardUnknown

func (m *EchoEnvelope) XXX_DiscardUnknown()

func (*EchoEnvelope) XXX_Marshal

func (m *EchoEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EchoEnvelope) XXX_Merge

func (dst *EchoEnvelope) XXX_Merge(src proto.Message)

func (*EchoEnvelope) XXX_Size

func (m *EchoEnvelope) XXX_Size() int

func (*EchoEnvelope) XXX_Unmarshal

func (m *EchoEnvelope) XXX_Unmarshal(b []byte) error

type EchoServiceClient

type EchoServiceClient interface {
	// NOTE: we wouldn't normally return the same type as the request, but to
	// simplify integration testing sometimes we stub out the response as the
	// request.
	Echo(ctx context.Context, in *EchoEnvelope, opts ...grpc.CallOption) (*EchoEnvelope, error)
}

EchoServiceClient is the client API for EchoService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEchoServiceClient

func NewEchoServiceClient(cc *grpc.ClientConn) EchoServiceClient

type EchoServiceServer

type EchoServiceServer interface {
	// NOTE: we wouldn't normally return the same type as the request, but to
	// simplify integration testing sometimes we stub out the response as the
	// request.
	Echo(context.Context, *EchoEnvelope) (*EchoEnvelope, error)
}

EchoServiceServer is the server API for EchoService service.

Jump to

Keyboard shortcuts

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