grpc

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEchoerServer

func RegisterEchoerServer(s *grpc.Server, srv EchoerServer)

Types

type EchoReply

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

func (*EchoReply) Descriptor

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

func (*EchoReply) GetReply

func (m *EchoReply) GetReply() string

func (*EchoReply) ProtoMessage

func (*EchoReply) ProtoMessage()

func (*EchoReply) Reset

func (m *EchoReply) Reset()

func (*EchoReply) String

func (m *EchoReply) String() string

func (*EchoReply) XXX_DiscardUnknown

func (m *EchoReply) XXX_DiscardUnknown()

func (*EchoReply) XXX_Marshal

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

func (*EchoReply) XXX_Merge

func (m *EchoReply) XXX_Merge(src proto.Message)

func (*EchoReply) XXX_Size

func (m *EchoReply) XXX_Size() int

func (*EchoReply) XXX_Unmarshal

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

type EchoRequest

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

func (*EchoRequest) Descriptor

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

func (*EchoRequest) GetText

func (m *EchoRequest) GetText() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) Reset

func (m *EchoRequest) Reset()

func (*EchoRequest) String

func (m *EchoRequest) String() string

func (*EchoRequest) XXX_DiscardUnknown

func (m *EchoRequest) XXX_DiscardUnknown()

func (*EchoRequest) XXX_Marshal

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

func (*EchoRequest) XXX_Merge

func (m *EchoRequest) XXX_Merge(src proto.Message)

func (*EchoRequest) XXX_Size

func (m *EchoRequest) XXX_Size() int

func (*EchoRequest) XXX_Unmarshal

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

type EchoerClient

type EchoerClient interface {
	Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error)
}

EchoerClient is the client API for Echoer service.

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

func NewEchoerClient

func NewEchoerClient(cc *grpc.ClientConn) EchoerClient

type EchoerServer

type EchoerServer interface {
	Echo(context.Context, *EchoRequest) (*EchoReply, error)
}

EchoerServer is the server API for Echoer service.

type UnimplementedEchoerServer

type UnimplementedEchoerServer struct {
}

UnimplementedEchoerServer can be embedded to have forward compatible implementations.

func (*UnimplementedEchoerServer) Echo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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