Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var EchoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "functionaltest.EchoService", HandlerType: (*EchoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _EchoService_Echo_Handler, }, { MethodName: "Err", Handler: _EchoService_Err_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "echo.proto", }
EchoService_ServiceDesc is the grpc.ServiceDesc for EchoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_echo_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)
Types ¶
type EchoMsg ¶
type EchoMsg struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*EchoMsg) Descriptor
deprecated
func (*EchoMsg) GetMessage ¶
func (*EchoMsg) ProtoMessage ¶
func (*EchoMsg) ProtoMessage()
func (*EchoMsg) ProtoReflect ¶
func (x *EchoMsg) ProtoReflect() protoreflect.Message
type EchoServiceClient ¶
type EchoServiceClient interface { Echo(ctx context.Context, in *EchoMsg, opts ...grpc.CallOption) (*EchoMsg, error) Err(ctx context.Context, in *ErrMsg, opts ...grpc.CallOption) (*emptypb.Empty, error) }
EchoServiceClient is the client API for EchoService 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 NewEchoServiceClient ¶
func NewEchoServiceClient(cc grpc.ClientConnInterface) EchoServiceClient
type EchoServiceServer ¶
type EchoServiceServer interface { Echo(context.Context, *EchoMsg) (*EchoMsg, error) Err(context.Context, *ErrMsg) (*emptypb.Empty, error) // contains filtered or unexported methods }
EchoServiceServer is the server API for EchoService service. All implementations must embed UnimplementedEchoServiceServer for forward compatibility
type ErrMsg ¶
type ErrMsg struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*ErrMsg) Descriptor
deprecated
func (*ErrMsg) ProtoMessage ¶
func (*ErrMsg) ProtoMessage()
func (*ErrMsg) ProtoReflect ¶
func (x *ErrMsg) ProtoReflect() protoreflect.Message
type UnimplementedEchoServiceServer ¶
type UnimplementedEchoServiceServer struct { }
UnimplementedEchoServiceServer must be embedded to have forward compatible implementations.
type UnsafeEchoServiceServer ¶
type UnsafeEchoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEchoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoServiceServer will result in compilation errors.