third_game

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_third_game_third_game_proto protoreflect.FileDescriptor

Functions

func NewThirdGameEndpoints

func NewThirdGameEndpoints() []*api.Endpoint

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

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

Cause function returns cause value.

func (EnterGameRequestValidationError) Error

Error satisfies the builtin error interface

func (EnterGameRequestValidationError) ErrorName

ErrorName returns error name.

func (EnterGameRequestValidationError) Field

Field function returns field value.

func (EnterGameRequestValidationError) Key

Key function returns key value.

func (EnterGameRequestValidationError) Reason

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

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

Cause function returns cause value.

func (HotListResponseValidationError) Error

Error satisfies the builtin error interface

func (HotListResponseValidationError) ErrorName

func (e HotListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (HotListResponseValidationError) Field

Field function returns field value.

func (HotListResponseValidationError) Key

Key function returns key value.

func (HotListResponseValidationError) Reason

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

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

Cause function returns cause value.

func (PlayedListRequestValidationError) Error

Error satisfies the builtin error interface

func (PlayedListRequestValidationError) ErrorName

ErrorName returns error name.

func (PlayedListRequestValidationError) Field

Field function returns field value.

func (PlayedListRequestValidationError) Key

Key function returns key value.

func (PlayedListRequestValidationError) Reason

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

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

Cause function returns cause value.

func (PlayedListResponseValidationError) Error

Error satisfies the builtin error interface

func (PlayedListResponseValidationError) ErrorName

ErrorName returns error name.

func (PlayedListResponseValidationError) Field

Field function returns field value.

func (PlayedListResponseValidationError) Key

Key function returns key value.

func (PlayedListResponseValidationError) Reason

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

Jump to

Keyboard shortcuts

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