echo

package
v0.0.0-...-ef70dd3 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEchoServerServer

func RegisterEchoServerServer(s *grpc.Server, srv EchoServerServer)

Types

type EchoReply

type EchoReply 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 (*EchoReply) Descriptor

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

func (*EchoReply) GetMessage

func (m *EchoReply) GetMessage() 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 {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EchoRequest) Descriptor

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

func (*EchoRequest) GetName

func (m *EchoRequest) GetName() 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 EchoServerClient

type EchoServerClient interface {
	SayHello(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error)
	SayHelloStream(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (EchoServer_SayHelloStreamClient, error)
}

EchoServerClient is the client API for EchoServer service.

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

func NewEchoServerClient

func NewEchoServerClient(cc grpc.ClientConnInterface) EchoServerClient

type EchoServerServer

type EchoServerServer interface {
	SayHello(context.Context, *EchoRequest) (*EchoReply, error)
	SayHelloStream(*EchoRequest, EchoServer_SayHelloStreamServer) error
}

EchoServerServer is the server API for EchoServer service.

type EchoServer_SayHelloStreamClient

type EchoServer_SayHelloStreamClient interface {
	Recv() (*EchoReply, error)
	grpc.ClientStream
}

type EchoServer_SayHelloStreamServer

type EchoServer_SayHelloStreamServer interface {
	Send(*EchoReply) error
	grpc.ServerStream
}

type UnimplementedEchoServerServer

type UnimplementedEchoServerServer struct {
}

UnimplementedEchoServerServer can be embedded to have forward compatible implementations.

func (*UnimplementedEchoServerServer) SayHello

func (*UnimplementedEchoServerServer) SayHelloStream

Jump to

Keyboard shortcuts

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