api

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnumSubscribe_name = map[int32]string{
		0: "SUB_PLAYER_UPDATE_EVENT",
	}
	EnumSubscribe_value = map[string]int32{
		"SUB_PLAYER_UPDATE_EVENT": 0,
	}
)

Enum value maps for EnumSubscribe.

View Source
var (
	EnumReply_name = map[int32]string{
		0: "REP_PLAYER_UPDATE_EVENT",
	}
	EnumReply_value = map[string]int32{
		"REP_PLAYER_UPDATE_EVENT": 0,
	}
)

Enum value maps for EnumReply.

View Source
var (
	EnumSubscribeQueue_name = map[int32]string{
		0: "QUE_PLAYER_UPDATE_EVENT",
	}
	EnumSubscribeQueue_value = map[string]int32{
		"QUE_PLAYER_UPDATE_EVENT": 0,
	}
)

Enum value maps for EnumSubscribeQueue.

View Source
var (
	// optional string Stream = 50000;
	E_Stream = &file_test_proto_extTypes[0]
	// optional string Subject = 50001;
	E_Subject = &file_test_proto_extTypes[1]
	// optional string Consumer = 50002;
	E_Consumer = &file_test_proto_extTypes[2]
	// optional bool IsStreamTransport = 50003;
	E_IsStreamTransport = &file_test_proto_extTypes[3]
)

Extension fields to descriptor.EnumValueOptions.

View Source
var (
	// optional api.EnumReply Reply = 50000;
	E_Reply = &file_test_proto_extTypes[4]
	// optional api.EnumSubscribe Subscribe = 50001;
	E_Subscribe = &file_test_proto_extTypes[5]
	// optional api.EnumSubscribeQueue SubscribeQueue = 50002;
	E_SubscribeQueue = &file_test_proto_extTypes[6]
)

Extension fields to descriptor.MethodOptions.

View Source
var Service1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.Service1",
	HandlerType: (*Service1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Method11",
			Handler:    _Service1_Method11_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test.proto",
}

Service1_ServiceDesc is the grpc.ServiceDesc for Service1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Service2_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.Service2",
	HandlerType: (*Service2Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Method21",
			Handler:    _Service2_Method21_Handler,
		},
		{
			MethodName: "Method22",
			Handler:    _Service2_Method22_Handler,
		},
		{
			MethodName: "Method23",
			Handler:    _Service2_Method23_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test.proto",
}

Service2_ServiceDesc is the grpc.ServiceDesc for Service2 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterService1Server

func RegisterService1Server(s grpc.ServiceRegistrar, srv Service1Server)

func RegisterService2Server

func RegisterService2Server(s grpc.ServiceRegistrar, srv Service2Server)

Types

type EnumReply

type EnumReply int32
const (
	EnumReply_REP_PLAYER_UPDATE_EVENT EnumReply = 0
)

func (EnumReply) Descriptor

func (EnumReply) Descriptor() protoreflect.EnumDescriptor

func (EnumReply) Enum

func (x EnumReply) Enum() *EnumReply

func (EnumReply) EnumDescriptor deprecated

func (EnumReply) EnumDescriptor() ([]byte, []int)

Deprecated: Use EnumReply.Descriptor instead.

func (EnumReply) Number

func (x EnumReply) Number() protoreflect.EnumNumber

func (EnumReply) String

func (x EnumReply) String() string

func (EnumReply) Type

type EnumSubscribe

type EnumSubscribe int32
const (
	EnumSubscribe_SUB_PLAYER_UPDATE_EVENT EnumSubscribe = 0
)

func (EnumSubscribe) Descriptor

func (EnumSubscribe) Enum

func (x EnumSubscribe) Enum() *EnumSubscribe

func (EnumSubscribe) EnumDescriptor deprecated

func (EnumSubscribe) EnumDescriptor() ([]byte, []int)

Deprecated: Use EnumSubscribe.Descriptor instead.

func (EnumSubscribe) Number

func (EnumSubscribe) String

func (x EnumSubscribe) String() string

func (EnumSubscribe) Type

type EnumSubscribeQueue

type EnumSubscribeQueue int32
const (
	EnumSubscribeQueue_QUE_PLAYER_UPDATE_EVENT EnumSubscribeQueue = 0
)

func (EnumSubscribeQueue) Descriptor

func (EnumSubscribeQueue) Enum

func (EnumSubscribeQueue) EnumDescriptor deprecated

func (EnumSubscribeQueue) EnumDescriptor() ([]byte, []int)

Deprecated: Use EnumSubscribeQueue.Descriptor instead.

func (EnumSubscribeQueue) Number

func (EnumSubscribeQueue) String

func (x EnumSubscribeQueue) String() string

func (EnumSubscribeQueue) Type

type Request1

type Request1 struct {
	// contains filtered or unexported fields
}

func (*Request1) Descriptor deprecated

func (*Request1) Descriptor() ([]byte, []int)

Deprecated: Use Request1.ProtoReflect.Descriptor instead.

func (*Request1) ProtoMessage

func (*Request1) ProtoMessage()

func (*Request1) ProtoReflect

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

func (*Request1) Reset

func (x *Request1) Reset()

func (*Request1) String

func (x *Request1) String() string

type Request2

type Request2 struct {
	// contains filtered or unexported fields
}

func (*Request2) Descriptor deprecated

func (*Request2) Descriptor() ([]byte, []int)

Deprecated: Use Request2.ProtoReflect.Descriptor instead.

func (*Request2) ProtoMessage

func (*Request2) ProtoMessage()

func (*Request2) ProtoReflect

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

func (*Request2) Reset

func (x *Request2) Reset()

func (*Request2) String

func (x *Request2) String() string

type Response1

type Response1 struct {
	// contains filtered or unexported fields
}

func (*Response1) Descriptor deprecated

func (*Response1) Descriptor() ([]byte, []int)

Deprecated: Use Response1.ProtoReflect.Descriptor instead.

func (*Response1) ProtoMessage

func (*Response1) ProtoMessage()

func (*Response1) ProtoReflect

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

func (*Response1) Reset

func (x *Response1) Reset()

func (*Response1) String

func (x *Response1) String() string

type Response2

type Response2 struct {
	// contains filtered or unexported fields
}

func (*Response2) Descriptor deprecated

func (*Response2) Descriptor() ([]byte, []int)

Deprecated: Use Response2.ProtoReflect.Descriptor instead.

func (*Response2) ProtoMessage

func (*Response2) ProtoMessage()

func (*Response2) ProtoReflect

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

func (*Response2) Reset

func (x *Response2) Reset()

func (*Response2) String

func (x *Response2) String() string

type Service1Client

type Service1Client interface {
	Method11(ctx context.Context, in *Request1, opts ...grpc.CallOption) (*Response1, error)
}

Service1Client is the client API for Service1 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 NewService1Client

func NewService1Client(cc grpc.ClientConnInterface) Service1Client

type Service1Server

type Service1Server interface {
	Method11(context.Context, *Request1) (*Response1, error)
	// contains filtered or unexported methods
}

Service1Server is the server API for Service1 service. All implementations must embed UnimplementedService1Server for forward compatibility

type Service2Client

type Service2Client interface {
	Method21(ctx context.Context, in *Request1, opts ...grpc.CallOption) (*Response1, error)
	Method22(ctx context.Context, in *Request1, opts ...grpc.CallOption) (*Response1, error)
	Method23(ctx context.Context, in *Request2, opts ...grpc.CallOption) (*Response2, error)
}

Service2Client is the client API for Service2 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 NewService2Client

func NewService2Client(cc grpc.ClientConnInterface) Service2Client

type Service2Server

type Service2Server interface {
	Method21(context.Context, *Request1) (*Response1, error)
	Method22(context.Context, *Request1) (*Response1, error)
	Method23(context.Context, *Request2) (*Response2, error)
	// contains filtered or unexported methods
}

Service2Server is the server API for Service2 service. All implementations must embed UnimplementedService2Server for forward compatibility

type UnimplementedService1Server

type UnimplementedService1Server struct {
}

UnimplementedService1Server must be embedded to have forward compatible implementations.

func (UnimplementedService1Server) Method11

type UnimplementedService2Server

type UnimplementedService2Server struct {
}

UnimplementedService2Server must be embedded to have forward compatible implementations.

func (UnimplementedService2Server) Method21

func (UnimplementedService2Server) Method22

func (UnimplementedService2Server) Method23

type UnsafeService1Server

type UnsafeService1Server interface {
	// contains filtered or unexported methods
}

UnsafeService1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to Service1Server will result in compilation errors.

type UnsafeService2Server

type UnsafeService2Server interface {
	// contains filtered or unexported methods
}

UnsafeService2Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to Service2Server will result in compilation errors.

Jump to

Keyboard shortcuts

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