echoer

package
v0.0.0-...-522cc97 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Echoer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "echoer.Echoer",
	HandlerType: (*EchoerServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Echo",
			Handler:       _Echoer_Echo_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "echoer.proto",
}

Echoer_ServiceDesc is the grpc.ServiceDesc for Echoer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_echoer_proto protoreflect.FileDescriptor

Functions

func RegisterEchoerServer

func RegisterEchoerServer(s grpc.ServiceRegistrar, srv EchoerServer)

Types

type EchoRequest

type EchoRequest struct {
	Payload *any1.Any `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*EchoRequest) Descriptor deprecated

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

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetPayload

func (x *EchoRequest) GetPayload() *any1.Any

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

func (x *EchoRequest) ProtoReflect() protoreflect.Message

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type EchoResponse

type EchoResponse struct {
	Payload *any1.Any `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Seq     int64     `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
	// contains filtered or unexported fields
}

func (*EchoResponse) Descriptor deprecated

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

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetPayload

func (x *EchoResponse) GetPayload() *any1.Any

func (*EchoResponse) GetSeq

func (x *EchoResponse) GetSeq() int64

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect

func (x *EchoResponse) ProtoReflect() protoreflect.Message

func (*EchoResponse) Reset

func (x *EchoResponse) Reset()

func (*EchoResponse) String

func (x *EchoResponse) String() string

type EchoerClient

type EchoerClient interface {
	Echo(ctx context.Context, opts ...grpc.CallOption) (Echoer_EchoClient, error)
}

EchoerClient is the client API for Echoer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewEchoerClient

func NewEchoerClient(cc grpc.ClientConnInterface) EchoerClient

type EchoerServer

type EchoerServer interface {
	Echo(Echoer_EchoServer) error
	// contains filtered or unexported methods
}

EchoerServer is the server API for Echoer service. All implementations must embed UnimplementedEchoerServer for forward compatibility

type Echoer_EchoClient

type Echoer_EchoClient interface {
	Send(*EchoRequest) error
	Recv() (*EchoResponse, error)
	grpc.ClientStream
}

type Echoer_EchoServer

type Echoer_EchoServer interface {
	Send(*EchoResponse) error
	Recv() (*EchoRequest, error)
	grpc.ServerStream
}

type UnimplementedEchoerServer

type UnimplementedEchoerServer struct {
}

UnimplementedEchoerServer must be embedded to have forward compatible implementations.

func (UnimplementedEchoerServer) Echo

type UnsafeEchoerServer

type UnsafeEchoerServer interface {
	// contains filtered or unexported methods
}

UnsafeEchoerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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