jump

package
v0.0.0-...-6623829 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_jump_jump_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use JumpReq.ProtoReflect.Descriptor instead.

func (*JumpReq) GetCount

func (x *JumpReq) GetCount() int32

func (*JumpReq) GetJumps

func (x *JumpReq) GetJumps() []string

func (*JumpReq) GetMessage

func (x *JumpReq) GetMessage() string

func (*JumpReq) ProtoMessage

func (*JumpReq) ProtoMessage()

func (*JumpReq) ProtoReflect

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

func (*JumpReq) Reset

func (x *JumpReq) Reset()

func (*JumpReq) String

func (x *JumpReq) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCode

func (x *Response) GetCode() int32

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedJumpServiceServer

type UnimplementedJumpServiceServer struct {
}

UnimplementedJumpServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedJumpServiceServer) Jump

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.

Jump to

Keyboard shortcuts

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