Documentation ¶
Index ¶
- Variables
- func NewThirdGameEndpoints() []*api.Endpoint
- func RegisterThirdGameHandler(s server.Server, hdlr ThirdGameHandler, opts ...server.HandlerOption) error
- type EnterGameRequest
- func (*EnterGameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnterGameRequest) GetGameId() int32
- func (x *EnterGameRequest) GetUserId() int64
- func (*EnterGameRequest) ProtoMessage()
- func (x *EnterGameRequest) ProtoReflect() protoreflect.Message
- func (x *EnterGameRequest) Reset()
- func (x *EnterGameRequest) String() string
- func (m *EnterGameRequest) Validate() error
- func (m *EnterGameRequest) ValidateAll() error
- type EnterGameRequestMultiError
- type EnterGameRequestValidationError
- func (e EnterGameRequestValidationError) Cause() error
- func (e EnterGameRequestValidationError) Error() string
- func (e EnterGameRequestValidationError) ErrorName() string
- func (e EnterGameRequestValidationError) Field() string
- func (e EnterGameRequestValidationError) Key() bool
- func (e EnterGameRequestValidationError) Reason() string
- type HotListResponse
- func (*HotListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HotListResponse) GetGameIds() []int32
- func (*HotListResponse) ProtoMessage()
- func (x *HotListResponse) ProtoReflect() protoreflect.Message
- func (x *HotListResponse) Reset()
- func (x *HotListResponse) String() string
- func (m *HotListResponse) Validate() error
- func (m *HotListResponse) ValidateAll() error
- type HotListResponseMultiError
- type HotListResponseValidationError
- func (e HotListResponseValidationError) Cause() error
- func (e HotListResponseValidationError) Error() string
- func (e HotListResponseValidationError) ErrorName() string
- func (e HotListResponseValidationError) Field() string
- func (e HotListResponseValidationError) Key() bool
- func (e HotListResponseValidationError) Reason() string
- type PlayedListRequest
- func (*PlayedListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PlayedListRequest) GetUserId() int64
- func (*PlayedListRequest) ProtoMessage()
- func (x *PlayedListRequest) ProtoReflect() protoreflect.Message
- func (x *PlayedListRequest) Reset()
- func (x *PlayedListRequest) String() string
- func (m *PlayedListRequest) Validate() error
- func (m *PlayedListRequest) ValidateAll() error
- type PlayedListRequestMultiError
- type PlayedListRequestValidationError
- func (e PlayedListRequestValidationError) Cause() error
- func (e PlayedListRequestValidationError) Error() string
- func (e PlayedListRequestValidationError) ErrorName() string
- func (e PlayedListRequestValidationError) Field() string
- func (e PlayedListRequestValidationError) Key() bool
- func (e PlayedListRequestValidationError) Reason() string
- type PlayedListResponse
- func (*PlayedListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PlayedListResponse) GetGameIds() []int32
- func (*PlayedListResponse) ProtoMessage()
- func (x *PlayedListResponse) ProtoReflect() protoreflect.Message
- func (x *PlayedListResponse) Reset()
- func (x *PlayedListResponse) String() string
- func (m *PlayedListResponse) Validate() error
- func (m *PlayedListResponse) ValidateAll() error
- type PlayedListResponseMultiError
- type PlayedListResponseValidationError
- func (e PlayedListResponseValidationError) Cause() error
- func (e PlayedListResponseValidationError) Error() string
- func (e PlayedListResponseValidationError) ErrorName() string
- func (e PlayedListResponseValidationError) Field() string
- func (e PlayedListResponseValidationError) Key() bool
- func (e PlayedListResponseValidationError) Reason() string
- type ThirdGameHandler
- type ThirdGameService
Constants ¶
This section is empty.
Variables ¶
var File_proto_third_game_third_game_proto protoreflect.FileDescriptor
Functions ¶
func NewThirdGameEndpoints ¶
func RegisterThirdGameHandler ¶
func RegisterThirdGameHandler(s server.Server, hdlr ThirdGameHandler, opts ...server.HandlerOption) error
Types ¶
type EnterGameRequest ¶
type EnterGameRequest struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"` GameId int32 `protobuf:"varint,2,opt,name=GameId,proto3" json:"GameId"` // contains filtered or unexported fields }
func (*EnterGameRequest) Descriptor
deprecated
func (*EnterGameRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnterGameRequest.ProtoReflect.Descriptor instead.
func (*EnterGameRequest) GetGameId ¶
func (x *EnterGameRequest) GetGameId() int32
func (*EnterGameRequest) GetUserId ¶
func (x *EnterGameRequest) GetUserId() int64
func (*EnterGameRequest) ProtoMessage ¶
func (*EnterGameRequest) ProtoMessage()
func (*EnterGameRequest) ProtoReflect ¶
func (x *EnterGameRequest) ProtoReflect() protoreflect.Message
func (*EnterGameRequest) Reset ¶
func (x *EnterGameRequest) Reset()
func (*EnterGameRequest) String ¶
func (x *EnterGameRequest) String() string
func (*EnterGameRequest) Validate ¶
func (m *EnterGameRequest) Validate() error
Validate checks the field values on EnterGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EnterGameRequest) ValidateAll ¶
func (m *EnterGameRequest) ValidateAll() error
ValidateAll checks the field values on EnterGameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnterGameRequestMultiError, or nil if none found.
type EnterGameRequestMultiError ¶
type EnterGameRequestMultiError []error
EnterGameRequestMultiError is an error wrapping multiple validation errors returned by EnterGameRequest.ValidateAll() if the designated constraints aren't met.
func (EnterGameRequestMultiError) AllErrors ¶
func (m EnterGameRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnterGameRequestMultiError) Error ¶
func (m EnterGameRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnterGameRequestValidationError ¶
type EnterGameRequestValidationError struct {
// contains filtered or unexported fields
}
EnterGameRequestValidationError is the validation error returned by EnterGameRequest.Validate if the designated constraints aren't met.
func (EnterGameRequestValidationError) Cause ¶
func (e EnterGameRequestValidationError) Cause() error
Cause function returns cause value.
func (EnterGameRequestValidationError) Error ¶
func (e EnterGameRequestValidationError) Error() string
Error satisfies the builtin error interface
func (EnterGameRequestValidationError) ErrorName ¶
func (e EnterGameRequestValidationError) ErrorName() string
ErrorName returns error name.
func (EnterGameRequestValidationError) Field ¶
func (e EnterGameRequestValidationError) Field() string
Field function returns field value.
func (EnterGameRequestValidationError) Key ¶
func (e EnterGameRequestValidationError) Key() bool
Key function returns key value.
func (EnterGameRequestValidationError) Reason ¶
func (e EnterGameRequestValidationError) Reason() string
Reason function returns reason value.
type HotListResponse ¶
type HotListResponse struct { GameIds []int32 `protobuf:"varint,1,rep,packed,name=GameIds,proto3" json:"GameIds"` // contains filtered or unexported fields }
func (*HotListResponse) Descriptor
deprecated
func (*HotListResponse) Descriptor() ([]byte, []int)
Deprecated: Use HotListResponse.ProtoReflect.Descriptor instead.
func (*HotListResponse) GetGameIds ¶
func (x *HotListResponse) GetGameIds() []int32
func (*HotListResponse) ProtoMessage ¶
func (*HotListResponse) ProtoMessage()
func (*HotListResponse) ProtoReflect ¶
func (x *HotListResponse) ProtoReflect() protoreflect.Message
func (*HotListResponse) Reset ¶
func (x *HotListResponse) Reset()
func (*HotListResponse) String ¶
func (x *HotListResponse) String() string
func (*HotListResponse) Validate ¶
func (m *HotListResponse) Validate() error
Validate checks the field values on HotListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*HotListResponse) ValidateAll ¶
func (m *HotListResponse) ValidateAll() error
ValidateAll checks the field values on HotListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HotListResponseMultiError, or nil if none found.
type HotListResponseMultiError ¶
type HotListResponseMultiError []error
HotListResponseMultiError is an error wrapping multiple validation errors returned by HotListResponse.ValidateAll() if the designated constraints aren't met.
func (HotListResponseMultiError) AllErrors ¶
func (m HotListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HotListResponseMultiError) Error ¶
func (m HotListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HotListResponseValidationError ¶
type HotListResponseValidationError struct {
// contains filtered or unexported fields
}
HotListResponseValidationError is the validation error returned by HotListResponse.Validate if the designated constraints aren't met.
func (HotListResponseValidationError) Cause ¶
func (e HotListResponseValidationError) Cause() error
Cause function returns cause value.
func (HotListResponseValidationError) Error ¶
func (e HotListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HotListResponseValidationError) ErrorName ¶
func (e HotListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HotListResponseValidationError) Field ¶
func (e HotListResponseValidationError) Field() string
Field function returns field value.
func (HotListResponseValidationError) Key ¶
func (e HotListResponseValidationError) Key() bool
Key function returns key value.
func (HotListResponseValidationError) Reason ¶
func (e HotListResponseValidationError) Reason() string
Reason function returns reason value.
type PlayedListRequest ¶
type PlayedListRequest struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"` // contains filtered or unexported fields }
func (*PlayedListRequest) Descriptor
deprecated
func (*PlayedListRequest) Descriptor() ([]byte, []int)
Deprecated: Use PlayedListRequest.ProtoReflect.Descriptor instead.
func (*PlayedListRequest) GetUserId ¶
func (x *PlayedListRequest) GetUserId() int64
func (*PlayedListRequest) ProtoMessage ¶
func (*PlayedListRequest) ProtoMessage()
func (*PlayedListRequest) ProtoReflect ¶
func (x *PlayedListRequest) ProtoReflect() protoreflect.Message
func (*PlayedListRequest) Reset ¶
func (x *PlayedListRequest) Reset()
func (*PlayedListRequest) String ¶
func (x *PlayedListRequest) String() string
func (*PlayedListRequest) Validate ¶
func (m *PlayedListRequest) Validate() error
Validate checks the field values on PlayedListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PlayedListRequest) ValidateAll ¶
func (m *PlayedListRequest) ValidateAll() error
ValidateAll checks the field values on PlayedListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PlayedListRequestMultiError, or nil if none found.
type PlayedListRequestMultiError ¶
type PlayedListRequestMultiError []error
PlayedListRequestMultiError is an error wrapping multiple validation errors returned by PlayedListRequest.ValidateAll() if the designated constraints aren't met.
func (PlayedListRequestMultiError) AllErrors ¶
func (m PlayedListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PlayedListRequestMultiError) Error ¶
func (m PlayedListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PlayedListRequestValidationError ¶
type PlayedListRequestValidationError struct {
// contains filtered or unexported fields
}
PlayedListRequestValidationError is the validation error returned by PlayedListRequest.Validate if the designated constraints aren't met.
func (PlayedListRequestValidationError) Cause ¶
func (e PlayedListRequestValidationError) Cause() error
Cause function returns cause value.
func (PlayedListRequestValidationError) Error ¶
func (e PlayedListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PlayedListRequestValidationError) ErrorName ¶
func (e PlayedListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PlayedListRequestValidationError) Field ¶
func (e PlayedListRequestValidationError) Field() string
Field function returns field value.
func (PlayedListRequestValidationError) Key ¶
func (e PlayedListRequestValidationError) Key() bool
Key function returns key value.
func (PlayedListRequestValidationError) Reason ¶
func (e PlayedListRequestValidationError) Reason() string
Reason function returns reason value.
type PlayedListResponse ¶
type PlayedListResponse struct { GameIds []int32 `protobuf:"varint,1,rep,packed,name=GameIds,proto3" json:"GameIds"` // contains filtered or unexported fields }
func (*PlayedListResponse) Descriptor
deprecated
func (*PlayedListResponse) Descriptor() ([]byte, []int)
Deprecated: Use PlayedListResponse.ProtoReflect.Descriptor instead.
func (*PlayedListResponse) GetGameIds ¶
func (x *PlayedListResponse) GetGameIds() []int32
func (*PlayedListResponse) ProtoMessage ¶
func (*PlayedListResponse) ProtoMessage()
func (*PlayedListResponse) ProtoReflect ¶
func (x *PlayedListResponse) ProtoReflect() protoreflect.Message
func (*PlayedListResponse) Reset ¶
func (x *PlayedListResponse) Reset()
func (*PlayedListResponse) String ¶
func (x *PlayedListResponse) String() string
func (*PlayedListResponse) Validate ¶
func (m *PlayedListResponse) Validate() error
Validate checks the field values on PlayedListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PlayedListResponse) ValidateAll ¶
func (m *PlayedListResponse) ValidateAll() error
ValidateAll checks the field values on PlayedListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PlayedListResponseMultiError, or nil if none found.
type PlayedListResponseMultiError ¶
type PlayedListResponseMultiError []error
PlayedListResponseMultiError is an error wrapping multiple validation errors returned by PlayedListResponse.ValidateAll() if the designated constraints aren't met.
func (PlayedListResponseMultiError) AllErrors ¶
func (m PlayedListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PlayedListResponseMultiError) Error ¶
func (m PlayedListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PlayedListResponseValidationError ¶
type PlayedListResponseValidationError struct {
// contains filtered or unexported fields
}
PlayedListResponseValidationError is the validation error returned by PlayedListResponse.Validate if the designated constraints aren't met.
func (PlayedListResponseValidationError) Cause ¶
func (e PlayedListResponseValidationError) Cause() error
Cause function returns cause value.
func (PlayedListResponseValidationError) Error ¶
func (e PlayedListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PlayedListResponseValidationError) ErrorName ¶
func (e PlayedListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PlayedListResponseValidationError) Field ¶
func (e PlayedListResponseValidationError) Field() string
Field function returns field value.
func (PlayedListResponseValidationError) Key ¶
func (e PlayedListResponseValidationError) Key() bool
Key function returns key value.
func (PlayedListResponseValidationError) Reason ¶
func (e PlayedListResponseValidationError) Reason() string
Reason function returns reason value.
type ThirdGameHandler ¶
type ThirdGameHandler interface { // 玩过列表 PlayedList(context.Context, *PlayedListRequest, *PlayedListResponse) error // 热门列表 HotList(context.Context, *emptypb.Empty, *HotListResponse) error // EnterGame 进入游戏 记录行为 EnterGame(context.Context, *EnterGameRequest, *emptypb.Empty) error }
type ThirdGameService ¶
type ThirdGameService interface { // 玩过列表 PlayedList(ctx context.Context, in *PlayedListRequest, opts ...client.CallOption) (*PlayedListResponse, error) // 热门列表 HotList(ctx context.Context, in *emptypb.Empty, opts ...client.CallOption) (*HotListResponse, error) // EnterGame 进入游戏 记录行为 EnterGame(ctx context.Context, in *EnterGameRequest, opts ...client.CallOption) (*emptypb.Empty, error) }
func NewThirdGameService ¶
func NewThirdGameService(name string, c client.Client) ThirdGameService