Documentation ¶
Index ¶
- Variables
- func RegisterService1Server(s grpc.ServiceRegistrar, srv Service1Server)
- func RegisterService2Server(s grpc.ServiceRegistrar, srv Service2Server)
- type EnumReply
- type EnumSubscribe
- func (EnumSubscribe) Descriptor() protoreflect.EnumDescriptor
- func (x EnumSubscribe) Enum() *EnumSubscribe
- func (EnumSubscribe) EnumDescriptor() ([]byte, []int)deprecated
- func (x EnumSubscribe) Number() protoreflect.EnumNumber
- func (x EnumSubscribe) String() string
- func (EnumSubscribe) Type() protoreflect.EnumType
- type EnumSubscribeQueue
- func (EnumSubscribeQueue) Descriptor() protoreflect.EnumDescriptor
- func (x EnumSubscribeQueue) Enum() *EnumSubscribeQueue
- func (EnumSubscribeQueue) EnumDescriptor() ([]byte, []int)deprecated
- func (x EnumSubscribeQueue) Number() protoreflect.EnumNumber
- func (x EnumSubscribeQueue) String() string
- func (EnumSubscribeQueue) Type() protoreflect.EnumType
- type Request1
- type Request2
- type Response1
- type Response2
- type Service1Client
- type Service1Server
- type Service2Client
- type Service2Server
- type UnimplementedService1Server
- type UnimplementedService2Server
- type UnsafeService1Server
- type UnsafeService2Server
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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.
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.
var File_test_proto protoreflect.FileDescriptor
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)
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) EnumDescriptor
deprecated
func (EnumReply) Number ¶
func (x EnumReply) Number() protoreflect.EnumNumber
func (EnumReply) Type ¶
func (EnumReply) Type() protoreflect.EnumType
type EnumSubscribe ¶
type EnumSubscribe int32
const (
EnumSubscribe_SUB_PLAYER_UPDATE_EVENT EnumSubscribe = 0
)
func (EnumSubscribe) Descriptor ¶
func (EnumSubscribe) Descriptor() protoreflect.EnumDescriptor
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 (x EnumSubscribe) Number() protoreflect.EnumNumber
func (EnumSubscribe) String ¶
func (x EnumSubscribe) String() string
func (EnumSubscribe) Type ¶
func (EnumSubscribe) Type() protoreflect.EnumType
type EnumSubscribeQueue ¶
type EnumSubscribeQueue int32
const (
EnumSubscribeQueue_QUE_PLAYER_UPDATE_EVENT EnumSubscribeQueue = 0
)
func (EnumSubscribeQueue) Descriptor ¶
func (EnumSubscribeQueue) Descriptor() protoreflect.EnumDescriptor
func (EnumSubscribeQueue) Enum ¶
func (x EnumSubscribeQueue) Enum() *EnumSubscribeQueue
func (EnumSubscribeQueue) EnumDescriptor
deprecated
func (EnumSubscribeQueue) EnumDescriptor() ([]byte, []int)
Deprecated: Use EnumSubscribeQueue.Descriptor instead.
func (EnumSubscribeQueue) Number ¶
func (x EnumSubscribeQueue) Number() protoreflect.EnumNumber
func (EnumSubscribeQueue) String ¶
func (x EnumSubscribeQueue) String() string
func (EnumSubscribeQueue) Type ¶
func (EnumSubscribeQueue) Type() protoreflect.EnumType
type Request1 ¶
type Request1 struct {
// contains filtered or unexported fields
}
func (*Request1) Descriptor
deprecated
func (*Request1) ProtoMessage ¶
func (*Request1) ProtoMessage()
func (*Request1) ProtoReflect ¶
func (x *Request1) ProtoReflect() protoreflect.Message
type Request2 ¶
type Request2 struct {
// contains filtered or unexported fields
}
func (*Request2) Descriptor
deprecated
func (*Request2) ProtoMessage ¶
func (*Request2) ProtoMessage()
func (*Request2) ProtoReflect ¶
func (x *Request2) ProtoReflect() protoreflect.Message
type Response1 ¶
type Response1 struct {
// contains filtered or unexported fields
}
func (*Response1) Descriptor
deprecated
func (*Response1) ProtoMessage ¶
func (*Response1) ProtoMessage()
func (*Response1) ProtoReflect ¶
func (x *Response1) ProtoReflect() protoreflect.Message
type Response2 ¶
type Response2 struct {
// contains filtered or unexported fields
}
func (*Response2) Descriptor
deprecated
func (*Response2) ProtoMessage ¶
func (*Response2) ProtoMessage()
func (*Response2) ProtoReflect ¶
func (x *Response2) ProtoReflect() protoreflect.Message
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.
type UnimplementedService2Server ¶
type UnimplementedService2Server struct { }
UnimplementedService2Server must be embedded to have forward compatible implementations.
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.