Documentation ¶
Index ¶
- Variables
- func RegisterJumpServiceServer(s grpc.ServiceRegistrar, srv JumpServiceServer)
- type JumpReq
- func (*JumpReq) Descriptor() ([]byte, []int)deprecated
- func (x *JumpReq) GetCount() int32
- func (x *JumpReq) GetJumps() []string
- func (x *JumpReq) GetMessage() string
- func (*JumpReq) ProtoMessage()
- func (x *JumpReq) ProtoReflect() protoreflect.Message
- func (x *JumpReq) Reset()
- func (x *JumpReq) String() string
- type JumpServiceClient
- type JumpServiceServer
- type Response
- type UnimplementedJumpServiceServer
- type UnsafeJumpServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_jump_jump_proto protoreflect.FileDescriptor
var JumpService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "jump.JumpService", HandlerType: (*JumpServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Jump", Handler: _JumpService_Jump_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "jump/jump.proto", }
JumpService_ServiceDesc is the grpc.ServiceDesc for JumpService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterJumpServiceServer ¶
func RegisterJumpServiceServer(s grpc.ServiceRegistrar, srv JumpServiceServer)
Types ¶
type JumpReq ¶
type JumpReq struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Jumps []string `protobuf:"bytes,3,rep,name=jumps,proto3" json:"jumps,omitempty"` // contains filtered or unexported fields }
func (*JumpReq) Descriptor
deprecated
func (*JumpReq) GetMessage ¶
func (*JumpReq) ProtoMessage ¶
func (*JumpReq) ProtoMessage()
func (*JumpReq) ProtoReflect ¶
func (x *JumpReq) ProtoReflect() protoreflect.Message
type JumpServiceClient ¶
type JumpServiceClient interface {
Jump(ctx context.Context, in *JumpReq, opts ...grpc.CallOption) (*Response, error)
}
JumpServiceClient is the client API for JumpService 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 NewJumpServiceClient ¶
func NewJumpServiceClient(cc grpc.ClientConnInterface) JumpServiceClient
type JumpServiceServer ¶
type JumpServiceServer interface { Jump(context.Context, *JumpReq) (*Response, error) // contains filtered or unexported methods }
JumpServiceServer is the server API for JumpService service. All implementations must embed UnimplementedJumpServiceServer for forward compatibility
type Response ¶
type Response struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedJumpServiceServer ¶
type UnimplementedJumpServiceServer struct { }
UnimplementedJumpServiceServer must be embedded to have forward compatible implementations.
type UnsafeJumpServiceServer ¶
type UnsafeJumpServiceServer interface {
// contains filtered or unexported methods
}
UnsafeJumpServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to JumpServiceServer will result in compilation errors.