const (
Echoer_Echo_FullMethodName = "/echo.Echoer/Echo"
)
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 Echoer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "echo.Echoer", HandlerType: (*EchoerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _Echoer_Echo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "echo.proto", }
var File_echo_proto protoreflect.FileDescriptor
func RegisterEchoerServer(s grpc.ServiceRegistrar, srv EchoerServer)
type EchoReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*EchoReply) Descriptor() ([]byte, []int)
Deprecated: Use EchoReply.ProtoReflect.Descriptor instead.
func (x *EchoReply) GetMessage() string
func (*EchoReply) ProtoMessage()
func (x *EchoReply) ProtoReflect() protoreflect.Message
func (x *EchoReply) Reset()
func (x *EchoReply) String() string
type EchoRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (x *EchoRequest) GetMessage() string
func (*EchoRequest) ProtoMessage()
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (x *EchoRequest) Reset()
func (x *EchoRequest) String() string
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.
type EchoerClient interface { Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error) }
func NewEchoerClient(cc grpc.ClientConnInterface) EchoerClient
EchoerServer is the server API for Echoer service. All implementations must embed UnimplementedEchoerServer for forward compatibility
type EchoerServer interface { Echo(context.Context, *EchoRequest) (*EchoReply, error) // contains filtered or unexported methods }
UnimplementedEchoerServer must be embedded to have forward compatible implementations.
type UnimplementedEchoerServer struct { }
func (UnimplementedEchoerServer) Echo(context.Context, *EchoRequest) (*EchoReply, error)
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.
type UnsafeEchoerServer interface {
// contains filtered or unexported methods
}