Documentation ¶
Index ¶
- Variables
- func RegisterEchoerServer(s grpc.ServiceRegistrar, srv EchoerServer)
- type EchoRequest
- type EchoResponse
- func (*EchoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EchoResponse) GetPayload() *any1.Any
- func (x *EchoResponse) GetSeq() int64
- func (*EchoResponse) ProtoMessage()
- func (x *EchoResponse) ProtoReflect() protoreflect.Message
- func (x *EchoResponse) Reset()
- func (x *EchoResponse) String() string
- type EchoerClient
- type EchoerServer
- type Echoer_EchoClient
- type Echoer_EchoServer
- type UnimplementedEchoerServer
- type UnsafeEchoerServer
Constants ¶
This section is empty.
Variables ¶
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)
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 ¶
func (UnimplementedEchoerServer) Echo(Echoer_EchoServer) error
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.