Documentation
¶
Index ¶
- Variables
- func DecodeUserModuleProto(p *UserModuleProto, module life.Module) error
- type ItemRecoveryInfoProto
- func (*ItemRecoveryInfoProto) Descriptor() ([]byte, []int)deprecated
- func (x *ItemRecoveryInfoProto) GetDataId() int64
- func (x *ItemRecoveryInfoProto) GetUpdatedAt() int64
- func (*ItemRecoveryInfoProto) ProtoMessage()
- func (x *ItemRecoveryInfoProto) ProtoReflect() protoreflect.Message
- func (x *ItemRecoveryInfoProto) Reset()
- func (x *ItemRecoveryInfoProto) String() string
- func (m *ItemRecoveryInfoProto) Validate() error
- func (m *ItemRecoveryInfoProto) ValidateAll() error
- type ItemRecoveryInfoProtoMultiError
- type ItemRecoveryInfoProtoValidationError
- func (e ItemRecoveryInfoProtoValidationError) Cause() error
- func (e ItemRecoveryInfoProtoValidationError) Error() string
- func (e ItemRecoveryInfoProtoValidationError) ErrorName() string
- func (e ItemRecoveryInfoProtoValidationError) Field() string
- func (e ItemRecoveryInfoProtoValidationError) Key() bool
- func (e ItemRecoveryInfoProtoValidationError) Reason() string
- type OrderAckState
- func (OrderAckState) Descriptor() protoreflect.EnumDescriptor
- func (x OrderAckState) Enum() *OrderAckState
- func (OrderAckState) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderAckState) Number() protoreflect.EnumNumber
- func (x OrderAckState) String() string
- func (OrderAckState) Type() protoreflect.EnumType
- type OrderInfoProto
- func (*OrderInfoProto) Descriptor() ([]byte, []int)deprecated
- func (x *OrderInfoProto) GetEnv() string
- func (x *OrderInfoProto) GetProductId() string
- func (x *OrderInfoProto) GetPurchasedAt() int64
- func (x *OrderInfoProto) GetToken() string
- func (*OrderInfoProto) ProtoMessage()
- func (x *OrderInfoProto) ProtoReflect() protoreflect.Message
- func (x *OrderInfoProto) Reset()
- func (x *OrderInfoProto) String() string
- func (m *OrderInfoProto) Validate() error
- func (m *OrderInfoProto) ValidateAll() error
- type OrderInfoProtoMultiError
- type OrderInfoProtoValidationError
- func (e OrderInfoProtoValidationError) Cause() error
- func (e OrderInfoProtoValidationError) Error() string
- func (e OrderInfoProtoValidationError) ErrorName() string
- func (e OrderInfoProtoValidationError) Field() string
- func (e OrderInfoProtoValidationError) Key() bool
- func (e OrderInfoProtoValidationError) Reason() string
- type OrderProto
- func (*OrderProto) Descriptor() ([]byte, []int)deprecated
- func (x *OrderProto) GetAck() int32
- func (x *OrderProto) GetAckAt() int64
- func (x *OrderProto) GetId() int64
- func (x *OrderProto) GetInfo() *OrderInfoProto
- func (x *OrderProto) GetStore() string
- func (x *OrderProto) GetTransId() string
- func (x *OrderProto) GetUid() int64
- func (*OrderProto) ProtoMessage()
- func (x *OrderProto) ProtoReflect() protoreflect.Message
- func (x *OrderProto) Reset()
- func (x *OrderProto) String() string
- func (m *OrderProto) Validate() error
- func (m *OrderProto) ValidateAll() error
- type OrderProtoMultiError
- type OrderProtoValidationError
- type UserBasicProto
- func (*UserBasicProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserBasicProto) GetCreatedAt() int64
- func (x *UserBasicProto) GetGender() int32
- func (x *UserBasicProto) GetName() string
- func (*UserBasicProto) ProtoMessage()
- func (x *UserBasicProto) ProtoReflect() protoreflect.Message
- func (x *UserBasicProto) Reset()
- func (x *UserBasicProto) String() string
- func (m *UserBasicProto) Validate() error
- func (m *UserBasicProto) ValidateAll() error
- func (x *UserBasicProto) Wrap() *UserModuleProto
- type UserBasicProtoMultiError
- type UserBasicProtoValidationError
- func (e UserBasicProtoValidationError) Cause() error
- func (e UserBasicProtoValidationError) Error() string
- func (e UserBasicProtoValidationError) ErrorName() string
- func (e UserBasicProtoValidationError) Field() string
- func (e UserBasicProtoValidationError) Key() bool
- func (e UserBasicProtoValidationError) Reason() string
- type UserDevProto
- func (*UserDevProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserDevProto) GetTimeOffset() int64
- func (*UserDevProto) ProtoMessage()
- func (x *UserDevProto) ProtoReflect() protoreflect.Message
- func (x *UserDevProto) Reset()
- func (x *UserDevProto) String() string
- func (m *UserDevProto) Validate() error
- func (m *UserDevProto) ValidateAll() error
- func (x *UserDevProto) Wrap() *UserModuleProto
- type UserDevProtoMultiError
- type UserDevProtoValidationError
- func (e UserDevProtoValidationError) Cause() error
- func (e UserDevProtoValidationError) Error() string
- func (e UserDevProtoValidationError) ErrorName() string
- func (e UserDevProtoValidationError) Field() string
- func (e UserDevProtoValidationError) Key() bool
- func (e UserDevProtoValidationError) Reason() string
- type UserHeroListProto
- func (*UserHeroListProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserHeroListProto) GetHeroes() map[int64]*UserHeroProto
- func (*UserHeroListProto) ProtoMessage()
- func (x *UserHeroListProto) ProtoReflect() protoreflect.Message
- func (x *UserHeroListProto) Reset()
- func (x *UserHeroListProto) String() string
- func (m *UserHeroListProto) Validate() error
- func (m *UserHeroListProto) ValidateAll() error
- func (x *UserHeroListProto) Wrap() *UserModuleProto
- type UserHeroListProtoMultiError
- type UserHeroListProtoValidationError
- func (e UserHeroListProtoValidationError) Cause() error
- func (e UserHeroListProtoValidationError) Error() string
- func (e UserHeroListProtoValidationError) ErrorName() string
- func (e UserHeroListProtoValidationError) Field() string
- func (e UserHeroListProtoValidationError) Key() bool
- func (e UserHeroListProtoValidationError) Reason() string
- type UserHeroProto
- func (*UserHeroProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserHeroProto) GetDataId() int64
- func (x *UserHeroProto) GetEquips() []int64
- func (x *UserHeroProto) GetId() int64
- func (x *UserHeroProto) GetLevel() int64
- func (x *UserHeroProto) GetSkills() map[int64]int64
- func (*UserHeroProto) ProtoMessage()
- func (x *UserHeroProto) ProtoReflect() protoreflect.Message
- func (x *UserHeroProto) Reset()
- func (x *UserHeroProto) String() string
- func (m *UserHeroProto) Validate() error
- func (m *UserHeroProto) ValidateAll() error
- type UserHeroProtoMultiError
- type UserHeroProtoValidationError
- func (e UserHeroProtoValidationError) Cause() error
- func (e UserHeroProtoValidationError) Error() string
- func (e UserHeroProtoValidationError) ErrorName() string
- func (e UserHeroProtoValidationError) Field() string
- func (e UserHeroProtoValidationError) Key() bool
- func (e UserHeroProtoValidationError) Reason() string
- type UserModuleProto
- func (*UserModuleProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserModuleProto) GetBasic() *UserBasicProto
- func (x *UserModuleProto) GetDev() *UserDevProto
- func (x *UserModuleProto) GetHeroList() *UserHeroListProto
- func (x *UserModuleProto) GetModule() isUserModuleProto_Module
- func (x *UserModuleProto) GetPlunderList() *UserPlunderListProto
- func (x *UserModuleProto) GetRecharge() *UserRechargeProto
- func (x *UserModuleProto) GetRoom() *UserRoomProto
- func (x *UserModuleProto) GetStatus() *UserStatusProto
- func (x *UserModuleProto) GetStorage() *UserStorageProto
- func (x *UserModuleProto) GetSystem() *UserSystemProto
- func (*UserModuleProto) ProtoMessage()
- func (x *UserModuleProto) ProtoReflect() protoreflect.Message
- func (x *UserModuleProto) Reset()
- func (x *UserModuleProto) String() string
- func (x *UserModuleProto) UnmarshalBSON(data []byte) error
- func (m *UserModuleProto) Validate() error
- func (m *UserModuleProto) ValidateAll() error
- type UserModuleProtoMultiError
- type UserModuleProtoValidationError
- func (e UserModuleProtoValidationError) Cause() error
- func (e UserModuleProtoValidationError) Error() string
- func (e UserModuleProtoValidationError) ErrorName() string
- func (e UserModuleProtoValidationError) Field() string
- func (e UserModuleProtoValidationError) Key() bool
- func (e UserModuleProtoValidationError) Reason() string
- type UserModuleProto_Basic
- type UserModuleProto_Dev
- type UserModuleProto_HeroList
- type UserModuleProto_PlunderList
- type UserModuleProto_Recharge
- type UserModuleProto_Room
- type UserModuleProto_Status
- type UserModuleProto_Storage
- type UserModuleProto_System
- type UserPlunderListProto
- func (*UserPlunderListProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserPlunderListProto) GetPlunders() map[int64]*UserPlunderProto
- func (*UserPlunderListProto) ProtoMessage()
- func (x *UserPlunderListProto) ProtoReflect() protoreflect.Message
- func (x *UserPlunderListProto) Reset()
- func (x *UserPlunderListProto) String() string
- func (m *UserPlunderListProto) Validate() error
- func (m *UserPlunderListProto) ValidateAll() error
- func (x *UserPlunderListProto) Wrap() *UserModuleProto
- type UserPlunderListProtoMultiError
- type UserPlunderListProtoValidationError
- func (e UserPlunderListProtoValidationError) Cause() error
- func (e UserPlunderListProtoValidationError) Error() string
- func (e UserPlunderListProtoValidationError) ErrorName() string
- func (e UserPlunderListProtoValidationError) Field() string
- func (e UserPlunderListProtoValidationError) Key() bool
- func (e UserPlunderListProtoValidationError) Reason() string
- type UserPlunderProto
- func (*UserPlunderProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserPlunderProto) GetWeights() map[int64]int64
- func (*UserPlunderProto) ProtoMessage()
- func (x *UserPlunderProto) ProtoReflect() protoreflect.Message
- func (x *UserPlunderProto) Reset()
- func (x *UserPlunderProto) String() string
- func (m *UserPlunderProto) Validate() error
- func (m *UserPlunderProto) ValidateAll() error
- type UserPlunderProtoMultiError
- type UserPlunderProtoValidationError
- func (e UserPlunderProtoValidationError) Cause() error
- func (e UserPlunderProtoValidationError) Error() string
- func (e UserPlunderProtoValidationError) ErrorName() string
- func (e UserPlunderProtoValidationError) Field() string
- func (e UserPlunderProtoValidationError) Key() bool
- func (e UserPlunderProtoValidationError) Reason() string
- type UserProto
- func (*UserProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserProto) GetId() int64
- func (x *UserProto) GetModules() map[string]*UserModuleProto
- func (x *UserProto) GetServerVersion() string
- func (x *UserProto) GetSid() int64
- func (x *UserProto) GetVersion() int64
- func (*UserProto) ProtoMessage()
- func (x *UserProto) ProtoReflect() protoreflect.Message
- func (x *UserProto) Reset()
- func (x *UserProto) String() string
- func (m *UserProto) Validate() error
- func (m *UserProto) ValidateAll() error
- type UserProtoMultiError
- type UserProtoValidationError
- type UserRechargeProto
- func (*UserRechargeProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserRechargeProto) GetAmount() string
- func (*UserRechargeProto) ProtoMessage()
- func (x *UserRechargeProto) ProtoReflect() protoreflect.Message
- func (x *UserRechargeProto) Reset()
- func (x *UserRechargeProto) String() string
- func (m *UserRechargeProto) Validate() error
- func (m *UserRechargeProto) ValidateAll() error
- func (x *UserRechargeProto) Wrap() *UserModuleProto
- type UserRechargeProtoMultiError
- type UserRechargeProtoValidationError
- func (e UserRechargeProtoValidationError) Cause() error
- func (e UserRechargeProtoValidationError) Error() string
- func (e UserRechargeProtoValidationError) ErrorName() string
- func (e UserRechargeProtoValidationError) Field() string
- func (e UserRechargeProtoValidationError) Key() bool
- func (e UserRechargeProtoValidationError) Reason() string
- type UserRoomProto
- func (*UserRoomProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserRoomProto) GetId() int64
- func (x *UserRoomProto) GetIsCreator() bool
- func (*UserRoomProto) ProtoMessage()
- func (x *UserRoomProto) ProtoReflect() protoreflect.Message
- func (x *UserRoomProto) Reset()
- func (x *UserRoomProto) String() string
- func (m *UserRoomProto) Validate() error
- func (m *UserRoomProto) ValidateAll() error
- func (x *UserRoomProto) Wrap() *UserModuleProto
- type UserRoomProtoMultiError
- type UserRoomProtoValidationError
- func (e UserRoomProtoValidationError) Cause() error
- func (e UserRoomProtoValidationError) Error() string
- func (e UserRoomProtoValidationError) ErrorName() string
- func (e UserRoomProtoValidationError) Field() string
- func (e UserRoomProtoValidationError) Key() bool
- func (e UserRoomProtoValidationError) Reason() string
- type UserStatusProto
- func (*UserStatusProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserStatusProto) GetDailyOnlineSeconds() int64
- func (x *UserStatusProto) GetLatestOnlineAt() int64
- func (x *UserStatusProto) GetLoginAt() int64
- func (x *UserStatusProto) GetLogoutAt() int64
- func (x *UserStatusProto) GetNextDailyResetAt() int64
- func (x *UserStatusProto) GetOnlineIp() string
- func (x *UserStatusProto) GetTotalOnlineSeconds() int64
- func (*UserStatusProto) ProtoMessage()
- func (x *UserStatusProto) ProtoReflect() protoreflect.Message
- func (x *UserStatusProto) Reset()
- func (x *UserStatusProto) String() string
- func (m *UserStatusProto) Validate() error
- func (m *UserStatusProto) ValidateAll() error
- func (x *UserStatusProto) Wrap() *UserModuleProto
- type UserStatusProtoMultiError
- type UserStatusProtoValidationError
- func (e UserStatusProtoValidationError) Cause() error
- func (e UserStatusProtoValidationError) Error() string
- func (e UserStatusProtoValidationError) ErrorName() string
- func (e UserStatusProtoValidationError) Field() string
- func (e UserStatusProtoValidationError) Key() bool
- func (e UserStatusProtoValidationError) Reason() string
- type UserStorageProto
- func (*UserStorageProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserStorageProto) GetItems() map[int64]uint64
- func (x *UserStorageProto) GetPacks() map[int64]uint64
- func (x *UserStorageProto) GetRecoveryInfos() map[int64]*ItemRecoveryInfoProto
- func (*UserStorageProto) ProtoMessage()
- func (x *UserStorageProto) ProtoReflect() protoreflect.Message
- func (x *UserStorageProto) Reset()
- func (x *UserStorageProto) String() string
- func (m *UserStorageProto) Validate() error
- func (m *UserStorageProto) ValidateAll() error
- func (x *UserStorageProto) Wrap() *UserModuleProto
- type UserStorageProtoMultiError
- type UserStorageProtoValidationError
- func (e UserStorageProtoValidationError) Cause() error
- func (e UserStorageProtoValidationError) Error() string
- func (e UserStorageProtoValidationError) ErrorName() string
- func (e UserStorageProtoValidationError) Field() string
- func (e UserStorageProtoValidationError) Key() bool
- func (e UserStorageProtoValidationError) Reason() string
- type UserSystemProto
- func (*UserSystemProto) Descriptor() ([]byte, []int)deprecated
- func (x *UserSystemProto) GetCurrentGenId() int64
- func (x *UserSystemProto) GetEvents() []*WorkerEvent
- func (*UserSystemProto) ProtoMessage()
- func (x *UserSystemProto) ProtoReflect() protoreflect.Message
- func (x *UserSystemProto) Reset()
- func (x *UserSystemProto) String() string
- func (m *UserSystemProto) Validate() error
- func (m *UserSystemProto) ValidateAll() error
- func (x *UserSystemProto) Wrap() *UserModuleProto
- type UserSystemProtoMultiError
- type UserSystemProtoValidationError
- func (e UserSystemProtoValidationError) Cause() error
- func (e UserSystemProtoValidationError) Error() string
- func (e UserSystemProtoValidationError) ErrorName() string
- func (e UserSystemProtoValidationError) Field() string
- func (e UserSystemProtoValidationError) Key() bool
- func (e UserSystemProtoValidationError) Reason() string
- type WorkerEvent
- func (*WorkerEvent) Descriptor() ([]byte, []int)deprecated
- func (x *WorkerEvent) GetArgs() []int64
- func (x *WorkerEvent) GetId() int64
- func (x *WorkerEvent) GetType() int64
- func (*WorkerEvent) ProtoMessage()
- func (x *WorkerEvent) ProtoReflect() protoreflect.Message
- func (x *WorkerEvent) Reset()
- func (x *WorkerEvent) String() string
- func (m *WorkerEvent) Validate() error
- func (m *WorkerEvent) ValidateAll() error
- type WorkerEventMultiError
- type WorkerEventValidationError
- func (e WorkerEventValidationError) Cause() error
- func (e WorkerEventValidationError) Error() string
- func (e WorkerEventValidationError) ErrorName() string
- func (e WorkerEventValidationError) Field() string
- func (e WorkerEventValidationError) Key() bool
- func (e WorkerEventValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( UserHeroListProtoPool = newUserHeroListProtoPool() UserHeroProtoPool = newUserHeroProtoPool() )
var ( OrderAckState_name = map[int32]string{ 0: "ORDER_ACK_STATE_UNSPECIFIED", 1: "ORDER_ACK_STATE_WAITING", 2: "ORDER_ACK_STATE_PENDING", 3: "ORDER_ACK_STATE_SUCCEEDED", 4: "ORDER_ACK_STATE_CANCELED", 11: "ORDER_ACK_STATE_GM_SUCCEEDED", 12: "ORDER_ACK_STATE_GM_CANCELED", } OrderAckState_value = map[string]int32{ "ORDER_ACK_STATE_UNSPECIFIED": 0, "ORDER_ACK_STATE_WAITING": 1, "ORDER_ACK_STATE_PENDING": 2, "ORDER_ACK_STATE_SUCCEEDED": 3, "ORDER_ACK_STATE_CANCELED": 4, "ORDER_ACK_STATE_GM_SUCCEEDED": 11, "ORDER_ACK_STATE_GM_CANCELED": 12, } )
Enum value maps for OrderAckState.
var ( OrderProtoPool = newOrderProtoPool() OrderInfoProtoPool = newOrderInfoProtoPool() )
var ( UserPlunderListProtoPool = newUserPlunderListProtoPool() UserPlunderProtoPool = newUserPlunderProtoPool() )
var ( UserStorageProtoPool = newUserStorageProtoPool() ItemRecoveryInfoProtoPool = newItemRecoveryInfoProtoPool() )
var ( UserSystemProtoPool = newUserSystemProtoPool() WorkerEventPool = newWorkerEventPool() )
var ( UserProtoPool = newUserProtoPool() UserModuleProtoPool = newUserModuleProtoPool() )
var File_player_v1_basic_proto protoreflect.FileDescriptor
var File_player_v1_dev_proto protoreflect.FileDescriptor
var File_player_v1_hero_proto protoreflect.FileDescriptor
var File_player_v1_order_proto protoreflect.FileDescriptor
var File_player_v1_plunder_proto protoreflect.FileDescriptor
var File_player_v1_recharge_proto protoreflect.FileDescriptor
var File_player_v1_room_proto protoreflect.FileDescriptor
var File_player_v1_status_proto protoreflect.FileDescriptor
var File_player_v1_storage_proto protoreflect.FileDescriptor
var File_player_v1_system_proto protoreflect.FileDescriptor
var File_player_v1_user_proto protoreflect.FileDescriptor
var (
UserBasicProtoPool = newUserBasicProtoPool()
)
var (
UserDevProtoPool = newUserDevProtoPool()
)
var (
UserRechargeProtoPool = newUserRechargeProtoPool()
)
var (
UserRoomProtoPool = newUserRoomProtoPool()
)
var (
UserStatusProtoPool = newUserStatusProtoPool()
)
Functions ¶
func DecodeUserModuleProto ¶
func DecodeUserModuleProto(p *UserModuleProto, module life.Module) error
Types ¶
type ItemRecoveryInfoProto ¶
type ItemRecoveryInfoProto struct {
DataId int64 `protobuf:"varint,1,opt,name=data_id,json=dataId,proto3" json:"data_id,omitempty" bson:"data_id"` // @gotags: bson:"data_id" Item DataID
UpdatedAt int64 `protobuf:"varint,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"` // @gotags: bson:"updated_at" Last Updated Time(Unix Timestamp)
// contains filtered or unexported fields
}
Item Recovery Info
func (*ItemRecoveryInfoProto) Descriptor
deprecated
func (*ItemRecoveryInfoProto) Descriptor() ([]byte, []int)
Deprecated: Use ItemRecoveryInfoProto.ProtoReflect.Descriptor instead.
func (*ItemRecoveryInfoProto) GetDataId ¶
func (x *ItemRecoveryInfoProto) GetDataId() int64
func (*ItemRecoveryInfoProto) GetUpdatedAt ¶
func (x *ItemRecoveryInfoProto) GetUpdatedAt() int64
func (*ItemRecoveryInfoProto) ProtoMessage ¶
func (*ItemRecoveryInfoProto) ProtoMessage()
func (*ItemRecoveryInfoProto) ProtoReflect ¶
func (x *ItemRecoveryInfoProto) ProtoReflect() protoreflect.Message
func (*ItemRecoveryInfoProto) Reset ¶
func (x *ItemRecoveryInfoProto) Reset()
func (*ItemRecoveryInfoProto) String ¶
func (x *ItemRecoveryInfoProto) String() string
func (*ItemRecoveryInfoProto) Validate ¶
func (m *ItemRecoveryInfoProto) Validate() error
Validate checks the field values on ItemRecoveryInfoProto 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 (*ItemRecoveryInfoProto) ValidateAll ¶
func (m *ItemRecoveryInfoProto) ValidateAll() error
ValidateAll checks the field values on ItemRecoveryInfoProto 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 ItemRecoveryInfoProtoMultiError, or nil if none found.
type ItemRecoveryInfoProtoMultiError ¶
type ItemRecoveryInfoProtoMultiError []error
ItemRecoveryInfoProtoMultiError is an error wrapping multiple validation errors returned by ItemRecoveryInfoProto.ValidateAll() if the designated constraints aren't met.
func (ItemRecoveryInfoProtoMultiError) AllErrors ¶
func (m ItemRecoveryInfoProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ItemRecoveryInfoProtoMultiError) Error ¶
func (m ItemRecoveryInfoProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ItemRecoveryInfoProtoValidationError ¶
type ItemRecoveryInfoProtoValidationError struct {
// contains filtered or unexported fields
}
ItemRecoveryInfoProtoValidationError is the validation error returned by ItemRecoveryInfoProto.Validate if the designated constraints aren't met.
func (ItemRecoveryInfoProtoValidationError) Cause ¶
func (e ItemRecoveryInfoProtoValidationError) Cause() error
Cause function returns cause value.
func (ItemRecoveryInfoProtoValidationError) Error ¶
func (e ItemRecoveryInfoProtoValidationError) Error() string
Error satisfies the builtin error interface
func (ItemRecoveryInfoProtoValidationError) ErrorName ¶
func (e ItemRecoveryInfoProtoValidationError) ErrorName() string
ErrorName returns error name.
func (ItemRecoveryInfoProtoValidationError) Field ¶
func (e ItemRecoveryInfoProtoValidationError) Field() string
Field function returns field value.
func (ItemRecoveryInfoProtoValidationError) Key ¶
func (e ItemRecoveryInfoProtoValidationError) Key() bool
Key function returns key value.
func (ItemRecoveryInfoProtoValidationError) Reason ¶
func (e ItemRecoveryInfoProtoValidationError) Reason() string
Reason function returns reason value.
type OrderAckState ¶
type OrderAckState int32
const ( OrderAckState_ORDER_ACK_STATE_UNSPECIFIED OrderAckState = 0 // Unspecified Order State OrderAckState_ORDER_ACK_STATE_WAITING OrderAckState = 1 // Waiting for Payment OrderAckState_ORDER_ACK_STATE_PENDING OrderAckState = 2 // Waiting for Processing OrderAckState_ORDER_ACK_STATE_SUCCEEDED OrderAckState = 3 // Order Completed OrderAckState_ORDER_ACK_STATE_CANCELED OrderAckState = 4 // Order Canceled OrderAckState_ORDER_ACK_STATE_GM_SUCCEEDED OrderAckState = 11 // Order Completed by Administrator OrderAckState_ORDER_ACK_STATE_GM_CANCELED OrderAckState = 12 // Order Canceled by Administrator )
func (OrderAckState) Descriptor ¶
func (OrderAckState) Descriptor() protoreflect.EnumDescriptor
func (OrderAckState) Enum ¶
func (x OrderAckState) Enum() *OrderAckState
func (OrderAckState) EnumDescriptor
deprecated
func (OrderAckState) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderAckState.Descriptor instead.
func (OrderAckState) Number ¶
func (x OrderAckState) Number() protoreflect.EnumNumber
func (OrderAckState) String ¶
func (x OrderAckState) String() string
func (OrderAckState) Type ¶
func (OrderAckState) Type() protoreflect.EnumType
type OrderInfoProto ¶
type OrderInfoProto struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Transaction Token
Env string `protobuf:"bytes,2,opt,name=env,proto3" json:"env,omitempty"` // Environment
ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // Product ID
PurchasedAt int64 `protobuf:"varint,4,opt,name=purchased_at,json=purchasedAt,proto3" json:"purchased_at,omitempty"` // Purchase Time
// contains filtered or unexported fields
}
func (*OrderInfoProto) Descriptor
deprecated
func (*OrderInfoProto) Descriptor() ([]byte, []int)
Deprecated: Use OrderInfoProto.ProtoReflect.Descriptor instead.
func (*OrderInfoProto) GetEnv ¶
func (x *OrderInfoProto) GetEnv() string
func (*OrderInfoProto) GetProductId ¶
func (x *OrderInfoProto) GetProductId() string
func (*OrderInfoProto) GetPurchasedAt ¶
func (x *OrderInfoProto) GetPurchasedAt() int64
func (*OrderInfoProto) GetToken ¶
func (x *OrderInfoProto) GetToken() string
func (*OrderInfoProto) ProtoMessage ¶
func (*OrderInfoProto) ProtoMessage()
func (*OrderInfoProto) ProtoReflect ¶
func (x *OrderInfoProto) ProtoReflect() protoreflect.Message
func (*OrderInfoProto) Reset ¶
func (x *OrderInfoProto) Reset()
func (*OrderInfoProto) String ¶
func (x *OrderInfoProto) String() string
func (*OrderInfoProto) Validate ¶
func (m *OrderInfoProto) Validate() error
Validate checks the field values on OrderInfoProto 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 (*OrderInfoProto) ValidateAll ¶
func (m *OrderInfoProto) ValidateAll() error
ValidateAll checks the field values on OrderInfoProto 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 OrderInfoProtoMultiError, or nil if none found.
type OrderInfoProtoMultiError ¶
type OrderInfoProtoMultiError []error
OrderInfoProtoMultiError is an error wrapping multiple validation errors returned by OrderInfoProto.ValidateAll() if the designated constraints aren't met.
func (OrderInfoProtoMultiError) AllErrors ¶
func (m OrderInfoProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OrderInfoProtoMultiError) Error ¶
func (m OrderInfoProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OrderInfoProtoValidationError ¶
type OrderInfoProtoValidationError struct {
// contains filtered or unexported fields
}
OrderInfoProtoValidationError is the validation error returned by OrderInfoProto.Validate if the designated constraints aren't met.
func (OrderInfoProtoValidationError) Cause ¶
func (e OrderInfoProtoValidationError) Cause() error
Cause function returns cause value.
func (OrderInfoProtoValidationError) Error ¶
func (e OrderInfoProtoValidationError) Error() string
Error satisfies the builtin error interface
func (OrderInfoProtoValidationError) ErrorName ¶
func (e OrderInfoProtoValidationError) ErrorName() string
ErrorName returns error name.
func (OrderInfoProtoValidationError) Field ¶
func (e OrderInfoProtoValidationError) Field() string
Field function returns field value.
func (OrderInfoProtoValidationError) Key ¶
func (e OrderInfoProtoValidationError) Key() bool
Key function returns key value.
func (OrderInfoProtoValidationError) Reason ¶
func (e OrderInfoProtoValidationError) Reason() string
Reason function returns reason value.
type OrderProto ¶
type OrderProto struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" pgname:"id" primarykey:"auto"` // @gotags: pgname:"id" primarykey:"auto" Order ID
Info *OrderInfoProto `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty" pgname:"info" pgtype:"jsonb"` // @gotags: pgname:"info" pgtype:"jsonb" Order Info
Uid int64 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty" pgname:"uid"` // @gotags: pgname:"uid" Confirmation Status
Store string `protobuf:"bytes,4,opt,name=store,proto3" json:"store,omitempty" pgname:"store"` // @gotags: pgname:"store" Payment Platform
TransId string `protobuf:"bytes,5,opt,name=trans_id,json=transId,proto3" json:"trans_id,omitempty" pgname:"trans_id"` // @gotags: pgname:"trans_id" Transaction ID
Ack int32 `protobuf:"varint,6,opt,name=ack,proto3" json:"ack,omitempty" pgname:"ack"` // @gotags: pgname:"ack" Confirmation Status
AckAt int64 `protobuf:"varint,7,opt,name=ack_at,json=ackAt,proto3" json:"ack_at,omitempty" pgname:"ack_at"` // @gotags: pgname:"ack_at" Confirmation Time
// contains filtered or unexported fields
}
Order Data
func (*OrderProto) Descriptor
deprecated
func (*OrderProto) Descriptor() ([]byte, []int)
Deprecated: Use OrderProto.ProtoReflect.Descriptor instead.
func (*OrderProto) GetAck ¶
func (x *OrderProto) GetAck() int32
func (*OrderProto) GetAckAt ¶
func (x *OrderProto) GetAckAt() int64
func (*OrderProto) GetId ¶
func (x *OrderProto) GetId() int64
func (*OrderProto) GetInfo ¶
func (x *OrderProto) GetInfo() *OrderInfoProto
func (*OrderProto) GetStore ¶
func (x *OrderProto) GetStore() string
func (*OrderProto) GetTransId ¶
func (x *OrderProto) GetTransId() string
func (*OrderProto) GetUid ¶
func (x *OrderProto) GetUid() int64
func (*OrderProto) ProtoMessage ¶
func (*OrderProto) ProtoMessage()
func (*OrderProto) ProtoReflect ¶
func (x *OrderProto) ProtoReflect() protoreflect.Message
func (*OrderProto) Reset ¶
func (x *OrderProto) Reset()
func (*OrderProto) String ¶
func (x *OrderProto) String() string
func (*OrderProto) Validate ¶
func (m *OrderProto) Validate() error
Validate checks the field values on OrderProto 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 (*OrderProto) ValidateAll ¶
func (m *OrderProto) ValidateAll() error
ValidateAll checks the field values on OrderProto 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 OrderProtoMultiError, or nil if none found.
type OrderProtoMultiError ¶
type OrderProtoMultiError []error
OrderProtoMultiError is an error wrapping multiple validation errors returned by OrderProto.ValidateAll() if the designated constraints aren't met.
func (OrderProtoMultiError) AllErrors ¶
func (m OrderProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OrderProtoMultiError) Error ¶
func (m OrderProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OrderProtoValidationError ¶
type OrderProtoValidationError struct {
// contains filtered or unexported fields
}
OrderProtoValidationError is the validation error returned by OrderProto.Validate if the designated constraints aren't met.
func (OrderProtoValidationError) Cause ¶
func (e OrderProtoValidationError) Cause() error
Cause function returns cause value.
func (OrderProtoValidationError) Error ¶
func (e OrderProtoValidationError) Error() string
Error satisfies the builtin error interface
func (OrderProtoValidationError) ErrorName ¶
func (e OrderProtoValidationError) ErrorName() string
ErrorName returns error name.
func (OrderProtoValidationError) Field ¶
func (e OrderProtoValidationError) Field() string
Field function returns field value.
func (OrderProtoValidationError) Key ¶
func (e OrderProtoValidationError) Key() bool
Key function returns key value.
func (OrderProtoValidationError) Reason ¶
func (e OrderProtoValidationError) Reason() string
Reason function returns reason value.
type UserBasicProto ¶
type UserBasicProto struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" bson:"name"` // @gotags: bson:"name"
Gender int32 `protobuf:"varint,2,opt,name=gender,proto3" json:"gender,omitempty" bson:"gender"` // @gotags: bson:"gender" Gender. 0: Default Not Selected Gender, 1: Male, 2: Female
CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` // @gotags: bson:"created_at"
// contains filtered or unexported fields
}
Basic Information
func (*UserBasicProto) Descriptor
deprecated
func (*UserBasicProto) Descriptor() ([]byte, []int)
Deprecated: Use UserBasicProto.ProtoReflect.Descriptor instead.
func (*UserBasicProto) GetCreatedAt ¶
func (x *UserBasicProto) GetCreatedAt() int64
func (*UserBasicProto) GetGender ¶
func (x *UserBasicProto) GetGender() int32
func (*UserBasicProto) GetName ¶
func (x *UserBasicProto) GetName() string
func (*UserBasicProto) ProtoMessage ¶
func (*UserBasicProto) ProtoMessage()
func (*UserBasicProto) ProtoReflect ¶
func (x *UserBasicProto) ProtoReflect() protoreflect.Message
func (*UserBasicProto) Reset ¶
func (x *UserBasicProto) Reset()
func (*UserBasicProto) String ¶
func (x *UserBasicProto) String() string
func (*UserBasicProto) Validate ¶
func (m *UserBasicProto) Validate() error
Validate checks the field values on UserBasicProto 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 (*UserBasicProto) ValidateAll ¶
func (m *UserBasicProto) ValidateAll() error
ValidateAll checks the field values on UserBasicProto 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 UserBasicProtoMultiError, or nil if none found.
func (*UserBasicProto) Wrap ¶
func (x *UserBasicProto) Wrap() *UserModuleProto
type UserBasicProtoMultiError ¶
type UserBasicProtoMultiError []error
UserBasicProtoMultiError is an error wrapping multiple validation errors returned by UserBasicProto.ValidateAll() if the designated constraints aren't met.
func (UserBasicProtoMultiError) AllErrors ¶
func (m UserBasicProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserBasicProtoMultiError) Error ¶
func (m UserBasicProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserBasicProtoValidationError ¶
type UserBasicProtoValidationError struct {
// contains filtered or unexported fields
}
UserBasicProtoValidationError is the validation error returned by UserBasicProto.Validate if the designated constraints aren't met.
func (UserBasicProtoValidationError) Cause ¶
func (e UserBasicProtoValidationError) Cause() error
Cause function returns cause value.
func (UserBasicProtoValidationError) Error ¶
func (e UserBasicProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserBasicProtoValidationError) ErrorName ¶
func (e UserBasicProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserBasicProtoValidationError) Field ¶
func (e UserBasicProtoValidationError) Field() string
Field function returns field value.
func (UserBasicProtoValidationError) Key ¶
func (e UserBasicProtoValidationError) Key() bool
Key function returns key value.
func (UserBasicProtoValidationError) Reason ¶
func (e UserBasicProtoValidationError) Reason() string
Reason function returns reason value.
type UserDevProto ¶
type UserDevProto struct {
TimeOffset int64 `protobuf:"varint,1,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty" bson:"time_offset"` // @gotags: bson:"time_offset"
// contains filtered or unexported fields
}
Development and Testing Related Data
func (*UserDevProto) Descriptor
deprecated
func (*UserDevProto) Descriptor() ([]byte, []int)
Deprecated: Use UserDevProto.ProtoReflect.Descriptor instead.
func (*UserDevProto) GetTimeOffset ¶
func (x *UserDevProto) GetTimeOffset() int64
func (*UserDevProto) ProtoMessage ¶
func (*UserDevProto) ProtoMessage()
func (*UserDevProto) ProtoReflect ¶
func (x *UserDevProto) ProtoReflect() protoreflect.Message
func (*UserDevProto) Reset ¶
func (x *UserDevProto) Reset()
func (*UserDevProto) String ¶
func (x *UserDevProto) String() string
func (*UserDevProto) Validate ¶
func (m *UserDevProto) Validate() error
Validate checks the field values on UserDevProto 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 (*UserDevProto) ValidateAll ¶
func (m *UserDevProto) ValidateAll() error
ValidateAll checks the field values on UserDevProto 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 UserDevProtoMultiError, or nil if none found.
func (*UserDevProto) Wrap ¶
func (x *UserDevProto) Wrap() *UserModuleProto
type UserDevProtoMultiError ¶
type UserDevProtoMultiError []error
UserDevProtoMultiError is an error wrapping multiple validation errors returned by UserDevProto.ValidateAll() if the designated constraints aren't met.
func (UserDevProtoMultiError) AllErrors ¶
func (m UserDevProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserDevProtoMultiError) Error ¶
func (m UserDevProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserDevProtoValidationError ¶
type UserDevProtoValidationError struct {
// contains filtered or unexported fields
}
UserDevProtoValidationError is the validation error returned by UserDevProto.Validate if the designated constraints aren't met.
func (UserDevProtoValidationError) Cause ¶
func (e UserDevProtoValidationError) Cause() error
Cause function returns cause value.
func (UserDevProtoValidationError) Error ¶
func (e UserDevProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserDevProtoValidationError) ErrorName ¶
func (e UserDevProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserDevProtoValidationError) Field ¶
func (e UserDevProtoValidationError) Field() string
Field function returns field value.
func (UserDevProtoValidationError) Key ¶
func (e UserDevProtoValidationError) Key() bool
Key function returns key value.
func (UserDevProtoValidationError) Reason ¶
func (e UserDevProtoValidationError) Reason() string
Reason function returns reason value.
type UserHeroListProto ¶
type UserHeroListProto struct {
Heroes map[int64]*UserHeroProto `` // @gotags: bson:"heroes" All Heroes
/* 154-byte string literal not displayed */
// contains filtered or unexported fields
}
Hero List
func (*UserHeroListProto) Descriptor
deprecated
func (*UserHeroListProto) Descriptor() ([]byte, []int)
Deprecated: Use UserHeroListProto.ProtoReflect.Descriptor instead.
func (*UserHeroListProto) GetHeroes ¶
func (x *UserHeroListProto) GetHeroes() map[int64]*UserHeroProto
func (*UserHeroListProto) ProtoMessage ¶
func (*UserHeroListProto) ProtoMessage()
func (*UserHeroListProto) ProtoReflect ¶
func (x *UserHeroListProto) ProtoReflect() protoreflect.Message
func (*UserHeroListProto) Reset ¶
func (x *UserHeroListProto) Reset()
func (*UserHeroListProto) String ¶
func (x *UserHeroListProto) String() string
func (*UserHeroListProto) Validate ¶
func (m *UserHeroListProto) Validate() error
Validate checks the field values on UserHeroListProto 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 (*UserHeroListProto) ValidateAll ¶
func (m *UserHeroListProto) ValidateAll() error
ValidateAll checks the field values on UserHeroListProto 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 UserHeroListProtoMultiError, or nil if none found.
func (*UserHeroListProto) Wrap ¶
func (x *UserHeroListProto) Wrap() *UserModuleProto
type UserHeroListProtoMultiError ¶
type UserHeroListProtoMultiError []error
UserHeroListProtoMultiError is an error wrapping multiple validation errors returned by UserHeroListProto.ValidateAll() if the designated constraints aren't met.
func (UserHeroListProtoMultiError) AllErrors ¶
func (m UserHeroListProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserHeroListProtoMultiError) Error ¶
func (m UserHeroListProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserHeroListProtoValidationError ¶
type UserHeroListProtoValidationError struct {
// contains filtered or unexported fields
}
UserHeroListProtoValidationError is the validation error returned by UserHeroListProto.Validate if the designated constraints aren't met.
func (UserHeroListProtoValidationError) Cause ¶
func (e UserHeroListProtoValidationError) Cause() error
Cause function returns cause value.
func (UserHeroListProtoValidationError) Error ¶
func (e UserHeroListProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserHeroListProtoValidationError) ErrorName ¶
func (e UserHeroListProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserHeroListProtoValidationError) Field ¶
func (e UserHeroListProtoValidationError) Field() string
Field function returns field value.
func (UserHeroListProtoValidationError) Key ¶
func (e UserHeroListProtoValidationError) Key() bool
Key function returns key value.
func (UserHeroListProtoValidationError) Reason ¶
func (e UserHeroListProtoValidationError) Reason() string
Reason function returns reason value.
type UserHeroProto ¶
type UserHeroProto struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" bson:"id"` // @gotags: bson:"id" Hero ID
DataId int64 `protobuf:"varint,2,opt,name=data_id,json=dataId,proto3" json:"data_id,omitempty" bson:"data_id"` // @gotags: bson:"data_id" Hero DataID
Level int64 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty" bson:"level"` // @gotags: bson:"level" Level
Skills map[int64]int64 `` // @gotags: bson:"skills" Skill ID -> Skill Level
/* 155-byte string literal not displayed */
Equips []int64 `protobuf:"varint,5,rep,packed,name=equips,proto3" json:"equips,omitempty" bson:"equips"` // @gotags: bson:"equips" Wearing Equipments
// contains filtered or unexported fields
}
Hero
func (*UserHeroProto) Descriptor
deprecated
func (*UserHeroProto) Descriptor() ([]byte, []int)
Deprecated: Use UserHeroProto.ProtoReflect.Descriptor instead.
func (*UserHeroProto) GetDataId ¶
func (x *UserHeroProto) GetDataId() int64
func (*UserHeroProto) GetEquips ¶
func (x *UserHeroProto) GetEquips() []int64
func (*UserHeroProto) GetId ¶
func (x *UserHeroProto) GetId() int64
func (*UserHeroProto) GetLevel ¶
func (x *UserHeroProto) GetLevel() int64
func (*UserHeroProto) GetSkills ¶
func (x *UserHeroProto) GetSkills() map[int64]int64
func (*UserHeroProto) ProtoMessage ¶
func (*UserHeroProto) ProtoMessage()
func (*UserHeroProto) ProtoReflect ¶
func (x *UserHeroProto) ProtoReflect() protoreflect.Message
func (*UserHeroProto) Reset ¶
func (x *UserHeroProto) Reset()
func (*UserHeroProto) String ¶
func (x *UserHeroProto) String() string
func (*UserHeroProto) Validate ¶
func (m *UserHeroProto) Validate() error
Validate checks the field values on UserHeroProto 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 (*UserHeroProto) ValidateAll ¶
func (m *UserHeroProto) ValidateAll() error
ValidateAll checks the field values on UserHeroProto 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 UserHeroProtoMultiError, or nil if none found.
type UserHeroProtoMultiError ¶
type UserHeroProtoMultiError []error
UserHeroProtoMultiError is an error wrapping multiple validation errors returned by UserHeroProto.ValidateAll() if the designated constraints aren't met.
func (UserHeroProtoMultiError) AllErrors ¶
func (m UserHeroProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserHeroProtoMultiError) Error ¶
func (m UserHeroProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserHeroProtoValidationError ¶
type UserHeroProtoValidationError struct {
// contains filtered or unexported fields
}
UserHeroProtoValidationError is the validation error returned by UserHeroProto.Validate if the designated constraints aren't met.
func (UserHeroProtoValidationError) Cause ¶
func (e UserHeroProtoValidationError) Cause() error
Cause function returns cause value.
func (UserHeroProtoValidationError) Error ¶
func (e UserHeroProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserHeroProtoValidationError) ErrorName ¶
func (e UserHeroProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserHeroProtoValidationError) Field ¶
func (e UserHeroProtoValidationError) Field() string
Field function returns field value.
func (UserHeroProtoValidationError) Key ¶
func (e UserHeroProtoValidationError) Key() bool
Key function returns key value.
func (UserHeroProtoValidationError) Reason ¶
func (e UserHeroProtoValidationError) Reason() string
Reason function returns reason value.
type UserModuleProto ¶
type UserModuleProto struct {
// Types that are valid to be assigned to Module:
//
// *UserModuleProto_Basic
// *UserModuleProto_Dev
// *UserModuleProto_Status
// *UserModuleProto_System
// *UserModuleProto_PlunderList
// *UserModuleProto_HeroList
// *UserModuleProto_Storage
// *UserModuleProto_Recharge
// *UserModuleProto_Room
Module isUserModuleProto_Module `protobuf_oneof:"module"`
// contains filtered or unexported fields
}
func EncodeUserModuleProto ¶
func EncodeUserModuleProto(module life.Module) *UserModuleProto
func (*UserModuleProto) Descriptor
deprecated
func (*UserModuleProto) Descriptor() ([]byte, []int)
Deprecated: Use UserModuleProto.ProtoReflect.Descriptor instead.
func (*UserModuleProto) GetBasic ¶
func (x *UserModuleProto) GetBasic() *UserBasicProto
func (*UserModuleProto) GetDev ¶
func (x *UserModuleProto) GetDev() *UserDevProto
func (*UserModuleProto) GetHeroList ¶
func (x *UserModuleProto) GetHeroList() *UserHeroListProto
func (*UserModuleProto) GetModule ¶
func (x *UserModuleProto) GetModule() isUserModuleProto_Module
func (*UserModuleProto) GetPlunderList ¶
func (x *UserModuleProto) GetPlunderList() *UserPlunderListProto
func (*UserModuleProto) GetRecharge ¶
func (x *UserModuleProto) GetRecharge() *UserRechargeProto
func (*UserModuleProto) GetRoom ¶
func (x *UserModuleProto) GetRoom() *UserRoomProto
func (*UserModuleProto) GetStatus ¶
func (x *UserModuleProto) GetStatus() *UserStatusProto
func (*UserModuleProto) GetStorage ¶
func (x *UserModuleProto) GetStorage() *UserStorageProto
func (*UserModuleProto) GetSystem ¶
func (x *UserModuleProto) GetSystem() *UserSystemProto
func (*UserModuleProto) ProtoMessage ¶
func (*UserModuleProto) ProtoMessage()
func (*UserModuleProto) ProtoReflect ¶
func (x *UserModuleProto) ProtoReflect() protoreflect.Message
func (*UserModuleProto) Reset ¶
func (x *UserModuleProto) Reset()
func (*UserModuleProto) String ¶
func (x *UserModuleProto) String() string
func (*UserModuleProto) UnmarshalBSON ¶
func (x *UserModuleProto) UnmarshalBSON(data []byte) error
UnmarshalBSON implements the bson.Unmarshaler interface for UserModuleProto. This is required to handle the 'oneof' field when decoding from MongoDB.
func (*UserModuleProto) Validate ¶
func (m *UserModuleProto) Validate() error
Validate checks the field values on UserModuleProto 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 (*UserModuleProto) ValidateAll ¶
func (m *UserModuleProto) ValidateAll() error
ValidateAll checks the field values on UserModuleProto 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 UserModuleProtoMultiError, or nil if none found.
type UserModuleProtoMultiError ¶
type UserModuleProtoMultiError []error
UserModuleProtoMultiError is an error wrapping multiple validation errors returned by UserModuleProto.ValidateAll() if the designated constraints aren't met.
func (UserModuleProtoMultiError) AllErrors ¶
func (m UserModuleProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserModuleProtoMultiError) Error ¶
func (m UserModuleProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserModuleProtoValidationError ¶
type UserModuleProtoValidationError struct {
// contains filtered or unexported fields
}
UserModuleProtoValidationError is the validation error returned by UserModuleProto.Validate if the designated constraints aren't met.
func (UserModuleProtoValidationError) Cause ¶
func (e UserModuleProtoValidationError) Cause() error
Cause function returns cause value.
func (UserModuleProtoValidationError) Error ¶
func (e UserModuleProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserModuleProtoValidationError) ErrorName ¶
func (e UserModuleProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserModuleProtoValidationError) Field ¶
func (e UserModuleProtoValidationError) Field() string
Field function returns field value.
func (UserModuleProtoValidationError) Key ¶
func (e UserModuleProtoValidationError) Key() bool
Key function returns key value.
func (UserModuleProtoValidationError) Reason ¶
func (e UserModuleProtoValidationError) Reason() string
Reason function returns reason value.
type UserModuleProto_Basic ¶
type UserModuleProto_Basic struct {
Basic *UserBasicProto `protobuf:"bytes,1,opt,name=basic,proto3,oneof"`
}
type UserModuleProto_Dev ¶
type UserModuleProto_Dev struct {
Dev *UserDevProto `protobuf:"bytes,2,opt,name=dev,proto3,oneof"`
}
type UserModuleProto_HeroList ¶
type UserModuleProto_HeroList struct {
HeroList *UserHeroListProto `protobuf:"bytes,6,opt,name=hero_list,json=heroList,proto3,oneof"`
}
type UserModuleProto_PlunderList ¶
type UserModuleProto_PlunderList struct {
PlunderList *UserPlunderListProto `protobuf:"bytes,5,opt,name=plunder_list,json=plunderList,proto3,oneof"`
}
type UserModuleProto_Recharge ¶
type UserModuleProto_Recharge struct {
Recharge *UserRechargeProto `protobuf:"bytes,8,opt,name=recharge,proto3,oneof"`
}
type UserModuleProto_Room ¶
type UserModuleProto_Room struct {
Room *UserRoomProto `protobuf:"bytes,9,opt,name=room,proto3,oneof"`
}
type UserModuleProto_Status ¶
type UserModuleProto_Status struct {
Status *UserStatusProto `protobuf:"bytes,3,opt,name=status,proto3,oneof"`
}
type UserModuleProto_Storage ¶
type UserModuleProto_Storage struct {
Storage *UserStorageProto `protobuf:"bytes,7,opt,name=storage,proto3,oneof"`
}
type UserModuleProto_System ¶
type UserModuleProto_System struct {
System *UserSystemProto `protobuf:"bytes,4,opt,name=system,proto3,oneof"`
}
type UserPlunderListProto ¶
type UserPlunderListProto struct {
Plunders map[int64]*UserPlunderProto `` // @gotags: bson:"plunder_list"
/* 164-byte string literal not displayed */
// contains filtered or unexported fields
}
Drop Reward Related Data
func (*UserPlunderListProto) Descriptor
deprecated
func (*UserPlunderListProto) Descriptor() ([]byte, []int)
Deprecated: Use UserPlunderListProto.ProtoReflect.Descriptor instead.
func (*UserPlunderListProto) GetPlunders ¶
func (x *UserPlunderListProto) GetPlunders() map[int64]*UserPlunderProto
func (*UserPlunderListProto) ProtoMessage ¶
func (*UserPlunderListProto) ProtoMessage()
func (*UserPlunderListProto) ProtoReflect ¶
func (x *UserPlunderListProto) ProtoReflect() protoreflect.Message
func (*UserPlunderListProto) Reset ¶
func (x *UserPlunderListProto) Reset()
func (*UserPlunderListProto) String ¶
func (x *UserPlunderListProto) String() string
func (*UserPlunderListProto) Validate ¶
func (m *UserPlunderListProto) Validate() error
Validate checks the field values on UserPlunderListProto 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 (*UserPlunderListProto) ValidateAll ¶
func (m *UserPlunderListProto) ValidateAll() error
ValidateAll checks the field values on UserPlunderListProto 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 UserPlunderListProtoMultiError, or nil if none found.
func (*UserPlunderListProto) Wrap ¶
func (x *UserPlunderListProto) Wrap() *UserModuleProto
type UserPlunderListProtoMultiError ¶
type UserPlunderListProtoMultiError []error
UserPlunderListProtoMultiError is an error wrapping multiple validation errors returned by UserPlunderListProto.ValidateAll() if the designated constraints aren't met.
func (UserPlunderListProtoMultiError) AllErrors ¶
func (m UserPlunderListProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserPlunderListProtoMultiError) Error ¶
func (m UserPlunderListProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserPlunderListProtoValidationError ¶
type UserPlunderListProtoValidationError struct {
// contains filtered or unexported fields
}
UserPlunderListProtoValidationError is the validation error returned by UserPlunderListProto.Validate if the designated constraints aren't met.
func (UserPlunderListProtoValidationError) Cause ¶
func (e UserPlunderListProtoValidationError) Cause() error
Cause function returns cause value.
func (UserPlunderListProtoValidationError) Error ¶
func (e UserPlunderListProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserPlunderListProtoValidationError) ErrorName ¶
func (e UserPlunderListProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserPlunderListProtoValidationError) Field ¶
func (e UserPlunderListProtoValidationError) Field() string
Field function returns field value.
func (UserPlunderListProtoValidationError) Key ¶
func (e UserPlunderListProtoValidationError) Key() bool
Key function returns key value.
func (UserPlunderListProtoValidationError) Reason ¶
func (e UserPlunderListProtoValidationError) Reason() string
Reason function returns reason value.
type UserPlunderProto ¶
type UserPlunderProto struct {
Weights map[int64]int64 `` // @gotags: bson:"weights" Current Drop Weight
/* 158-byte string literal not displayed */
// contains filtered or unexported fields
}
Drop State
func (*UserPlunderProto) Descriptor
deprecated
func (*UserPlunderProto) Descriptor() ([]byte, []int)
Deprecated: Use UserPlunderProto.ProtoReflect.Descriptor instead.
func (*UserPlunderProto) GetWeights ¶
func (x *UserPlunderProto) GetWeights() map[int64]int64
func (*UserPlunderProto) ProtoMessage ¶
func (*UserPlunderProto) ProtoMessage()
func (*UserPlunderProto) ProtoReflect ¶
func (x *UserPlunderProto) ProtoReflect() protoreflect.Message
func (*UserPlunderProto) Reset ¶
func (x *UserPlunderProto) Reset()
func (*UserPlunderProto) String ¶
func (x *UserPlunderProto) String() string
func (*UserPlunderProto) Validate ¶
func (m *UserPlunderProto) Validate() error
Validate checks the field values on UserPlunderProto 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 (*UserPlunderProto) ValidateAll ¶
func (m *UserPlunderProto) ValidateAll() error
ValidateAll checks the field values on UserPlunderProto 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 UserPlunderProtoMultiError, or nil if none found.
type UserPlunderProtoMultiError ¶
type UserPlunderProtoMultiError []error
UserPlunderProtoMultiError is an error wrapping multiple validation errors returned by UserPlunderProto.ValidateAll() if the designated constraints aren't met.
func (UserPlunderProtoMultiError) AllErrors ¶
func (m UserPlunderProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserPlunderProtoMultiError) Error ¶
func (m UserPlunderProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserPlunderProtoValidationError ¶
type UserPlunderProtoValidationError struct {
// contains filtered or unexported fields
}
UserPlunderProtoValidationError is the validation error returned by UserPlunderProto.Validate if the designated constraints aren't met.
func (UserPlunderProtoValidationError) Cause ¶
func (e UserPlunderProtoValidationError) Cause() error
Cause function returns cause value.
func (UserPlunderProtoValidationError) Error ¶
func (e UserPlunderProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserPlunderProtoValidationError) ErrorName ¶
func (e UserPlunderProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserPlunderProtoValidationError) Field ¶
func (e UserPlunderProtoValidationError) Field() string
Field function returns field value.
func (UserPlunderProtoValidationError) Key ¶
func (e UserPlunderProtoValidationError) Key() bool
Key function returns key value.
func (UserPlunderProtoValidationError) Reason ¶
func (e UserPlunderProtoValidationError) Reason() string
Reason function returns reason value.
type UserProto ¶
type UserProto struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" bson:"id" pgname:"id" primarykey:"bigint"` // @gotags: bson:"id" pgname:"id" primarykey:"bigint"
Sid int64 `protobuf:"varint,2,opt,name=sid,proto3" json:"sid,omitempty" bson:"sid" pgname:"sid"` // @gotags: bson:"sid" pgname:"sid"
Modules map[string]*UserModuleProto `` // @gotags: bson:"modules"
/* 157-byte string literal not displayed */
Version int64 `protobuf:"varint,11,opt,name=version,proto3" json:"version,omitempty" bson:"version" pgname:"version"` // @gotags: bson:"version" pgname:"version" Player Data Version
ServerVersion string `` // @gotags: bson:"server_version" pgname:"server_version" Current Server Version
/* 147-byte string literal not displayed */
// contains filtered or unexported fields
}
User Data
func (*UserProto) Descriptor
deprecated
func (*UserProto) GetModules ¶
func (x *UserProto) GetModules() map[string]*UserModuleProto
func (*UserProto) GetServerVersion ¶
func (*UserProto) GetVersion ¶
func (*UserProto) ProtoMessage ¶
func (*UserProto) ProtoMessage()
func (*UserProto) ProtoReflect ¶
func (x *UserProto) ProtoReflect() protoreflect.Message
func (*UserProto) Validate ¶
Validate checks the field values on UserProto 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 (*UserProto) ValidateAll ¶
ValidateAll checks the field values on UserProto 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 UserProtoMultiError, or nil if none found.
type UserProtoMultiError ¶
type UserProtoMultiError []error
UserProtoMultiError is an error wrapping multiple validation errors returned by UserProto.ValidateAll() if the designated constraints aren't met.
func (UserProtoMultiError) AllErrors ¶
func (m UserProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserProtoMultiError) Error ¶
func (m UserProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserProtoValidationError ¶
type UserProtoValidationError struct {
// contains filtered or unexported fields
}
UserProtoValidationError is the validation error returned by UserProto.Validate if the designated constraints aren't met.
func (UserProtoValidationError) Cause ¶
func (e UserProtoValidationError) Cause() error
Cause function returns cause value.
func (UserProtoValidationError) Error ¶
func (e UserProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserProtoValidationError) ErrorName ¶
func (e UserProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserProtoValidationError) Field ¶
func (e UserProtoValidationError) Field() string
Field function returns field value.
func (UserProtoValidationError) Key ¶
func (e UserProtoValidationError) Key() bool
Key function returns key value.
func (UserProtoValidationError) Reason ¶
func (e UserProtoValidationError) Reason() string
Reason function returns reason value.
type UserRechargeProto ¶
type UserRechargeProto struct {
Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty" bson:"amount"` // @gotags: bson:"amount" Player Total Recharge Amount
// contains filtered or unexported fields
}
func (*UserRechargeProto) Descriptor
deprecated
func (*UserRechargeProto) Descriptor() ([]byte, []int)
Deprecated: Use UserRechargeProto.ProtoReflect.Descriptor instead.
func (*UserRechargeProto) GetAmount ¶
func (x *UserRechargeProto) GetAmount() string
func (*UserRechargeProto) ProtoMessage ¶
func (*UserRechargeProto) ProtoMessage()
func (*UserRechargeProto) ProtoReflect ¶
func (x *UserRechargeProto) ProtoReflect() protoreflect.Message
func (*UserRechargeProto) Reset ¶
func (x *UserRechargeProto) Reset()
func (*UserRechargeProto) String ¶
func (x *UserRechargeProto) String() string
func (*UserRechargeProto) Validate ¶
func (m *UserRechargeProto) Validate() error
Validate checks the field values on UserRechargeProto 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 (*UserRechargeProto) ValidateAll ¶
func (m *UserRechargeProto) ValidateAll() error
ValidateAll checks the field values on UserRechargeProto 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 UserRechargeProtoMultiError, or nil if none found.
func (*UserRechargeProto) Wrap ¶
func (x *UserRechargeProto) Wrap() *UserModuleProto
type UserRechargeProtoMultiError ¶
type UserRechargeProtoMultiError []error
UserRechargeProtoMultiError is an error wrapping multiple validation errors returned by UserRechargeProto.ValidateAll() if the designated constraints aren't met.
func (UserRechargeProtoMultiError) AllErrors ¶
func (m UserRechargeProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserRechargeProtoMultiError) Error ¶
func (m UserRechargeProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRechargeProtoValidationError ¶
type UserRechargeProtoValidationError struct {
// contains filtered or unexported fields
}
UserRechargeProtoValidationError is the validation error returned by UserRechargeProto.Validate if the designated constraints aren't met.
func (UserRechargeProtoValidationError) Cause ¶
func (e UserRechargeProtoValidationError) Cause() error
Cause function returns cause value.
func (UserRechargeProtoValidationError) Error ¶
func (e UserRechargeProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserRechargeProtoValidationError) ErrorName ¶
func (e UserRechargeProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserRechargeProtoValidationError) Field ¶
func (e UserRechargeProtoValidationError) Field() string
Field function returns field value.
func (UserRechargeProtoValidationError) Key ¶
func (e UserRechargeProtoValidationError) Key() bool
Key function returns key value.
func (UserRechargeProtoValidationError) Reason ¶
func (e UserRechargeProtoValidationError) Reason() string
Reason function returns reason value.
type UserRoomProto ¶
type UserRoomProto struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" bson:"id"` // @gotags: bson:"id" Room ID
IsCreator bool `protobuf:"varint,2,opt,name=is_creator,json=isCreator,proto3" json:"is_creator,omitempty" bson:"is_creator"` // @gotags: bson:"is_creator" Is Creator of the Room
// contains filtered or unexported fields
}
func (*UserRoomProto) Descriptor
deprecated
func (*UserRoomProto) Descriptor() ([]byte, []int)
Deprecated: Use UserRoomProto.ProtoReflect.Descriptor instead.
func (*UserRoomProto) GetId ¶
func (x *UserRoomProto) GetId() int64
func (*UserRoomProto) GetIsCreator ¶
func (x *UserRoomProto) GetIsCreator() bool
func (*UserRoomProto) ProtoMessage ¶
func (*UserRoomProto) ProtoMessage()
func (*UserRoomProto) ProtoReflect ¶
func (x *UserRoomProto) ProtoReflect() protoreflect.Message
func (*UserRoomProto) Reset ¶
func (x *UserRoomProto) Reset()
func (*UserRoomProto) String ¶
func (x *UserRoomProto) String() string
func (*UserRoomProto) Validate ¶
func (m *UserRoomProto) Validate() error
Validate checks the field values on UserRoomProto 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 (*UserRoomProto) ValidateAll ¶
func (m *UserRoomProto) ValidateAll() error
ValidateAll checks the field values on UserRoomProto 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 UserRoomProtoMultiError, or nil if none found.
func (*UserRoomProto) Wrap ¶
func (x *UserRoomProto) Wrap() *UserModuleProto
type UserRoomProtoMultiError ¶
type UserRoomProtoMultiError []error
UserRoomProtoMultiError is an error wrapping multiple validation errors returned by UserRoomProto.ValidateAll() if the designated constraints aren't met.
func (UserRoomProtoMultiError) AllErrors ¶
func (m UserRoomProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserRoomProtoMultiError) Error ¶
func (m UserRoomProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserRoomProtoValidationError ¶
type UserRoomProtoValidationError struct {
// contains filtered or unexported fields
}
UserRoomProtoValidationError is the validation error returned by UserRoomProto.Validate if the designated constraints aren't met.
func (UserRoomProtoValidationError) Cause ¶
func (e UserRoomProtoValidationError) Cause() error
Cause function returns cause value.
func (UserRoomProtoValidationError) Error ¶
func (e UserRoomProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserRoomProtoValidationError) ErrorName ¶
func (e UserRoomProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserRoomProtoValidationError) Field ¶
func (e UserRoomProtoValidationError) Field() string
Field function returns field value.
func (UserRoomProtoValidationError) Key ¶
func (e UserRoomProtoValidationError) Key() bool
Key function returns key value.
func (UserRoomProtoValidationError) Reason ¶
func (e UserRoomProtoValidationError) Reason() string
Reason function returns reason value.
type UserStatusProto ¶
type UserStatusProto struct {
OnlineIp string `protobuf:"bytes,1,opt,name=online_ip,json=onlineIp,proto3" json:"online_ip,omitempty" bson:"online_ip"` // @gotags: bson:"online_ip" Online IP Address
LoginAt int64 `protobuf:"varint,2,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty" bson:"login_at"` // @gotags: bson:"login_at" Login Time(Unix Timestamp)
LogoutAt int64 `protobuf:"varint,3,opt,name=logout_at,json=logoutAt,proto3" json:"logout_at,omitempty" bson:"logout_at"` // @gotags: bson:"logout_at" Logout Time(Unix Timestamp)
LatestOnlineAt int64 `` // @gotags: bson:"last_online_at" Last Online Time(Unix Timestamp)
/* 128-byte string literal not displayed */
NextDailyResetAt int64 `` // @gotags: bson:"next_daily_reset_at" Next Daily Reset Time(Unix Timestamp)
/* 141-byte string literal not displayed */
DailyOnlineSeconds int64 `` // @gotags: bson:"daily_online_seconds" Daily Online Time(Seconds)
/* 146-byte string literal not displayed */
TotalOnlineSeconds int64 `` // @gotags: bson:"total_online_seconds" Total Online Time(Seconds)
/* 146-byte string literal not displayed */
// contains filtered or unexported fields
}
Basic Information
func (*UserStatusProto) Descriptor
deprecated
func (*UserStatusProto) Descriptor() ([]byte, []int)
Deprecated: Use UserStatusProto.ProtoReflect.Descriptor instead.
func (*UserStatusProto) GetDailyOnlineSeconds ¶
func (x *UserStatusProto) GetDailyOnlineSeconds() int64
func (*UserStatusProto) GetLatestOnlineAt ¶
func (x *UserStatusProto) GetLatestOnlineAt() int64
func (*UserStatusProto) GetLoginAt ¶
func (x *UserStatusProto) GetLoginAt() int64
func (*UserStatusProto) GetLogoutAt ¶
func (x *UserStatusProto) GetLogoutAt() int64
func (*UserStatusProto) GetNextDailyResetAt ¶
func (x *UserStatusProto) GetNextDailyResetAt() int64
func (*UserStatusProto) GetOnlineIp ¶
func (x *UserStatusProto) GetOnlineIp() string
func (*UserStatusProto) GetTotalOnlineSeconds ¶
func (x *UserStatusProto) GetTotalOnlineSeconds() int64
func (*UserStatusProto) ProtoMessage ¶
func (*UserStatusProto) ProtoMessage()
func (*UserStatusProto) ProtoReflect ¶
func (x *UserStatusProto) ProtoReflect() protoreflect.Message
func (*UserStatusProto) Reset ¶
func (x *UserStatusProto) Reset()
func (*UserStatusProto) String ¶
func (x *UserStatusProto) String() string
func (*UserStatusProto) Validate ¶
func (m *UserStatusProto) Validate() error
Validate checks the field values on UserStatusProto 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 (*UserStatusProto) ValidateAll ¶
func (m *UserStatusProto) ValidateAll() error
ValidateAll checks the field values on UserStatusProto 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 UserStatusProtoMultiError, or nil if none found.
func (*UserStatusProto) Wrap ¶
func (x *UserStatusProto) Wrap() *UserModuleProto
type UserStatusProtoMultiError ¶
type UserStatusProtoMultiError []error
UserStatusProtoMultiError is an error wrapping multiple validation errors returned by UserStatusProto.ValidateAll() if the designated constraints aren't met.
func (UserStatusProtoMultiError) AllErrors ¶
func (m UserStatusProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserStatusProtoMultiError) Error ¶
func (m UserStatusProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserStatusProtoValidationError ¶
type UserStatusProtoValidationError struct {
// contains filtered or unexported fields
}
UserStatusProtoValidationError is the validation error returned by UserStatusProto.Validate if the designated constraints aren't met.
func (UserStatusProtoValidationError) Cause ¶
func (e UserStatusProtoValidationError) Cause() error
Cause function returns cause value.
func (UserStatusProtoValidationError) Error ¶
func (e UserStatusProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserStatusProtoValidationError) ErrorName ¶
func (e UserStatusProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserStatusProtoValidationError) Field ¶
func (e UserStatusProtoValidationError) Field() string
Field function returns field value.
func (UserStatusProtoValidationError) Key ¶
func (e UserStatusProtoValidationError) Key() bool
Key function returns key value.
func (UserStatusProtoValidationError) Reason ¶
func (e UserStatusProtoValidationError) Reason() string
Reason function returns reason value.
type UserStorageProto ¶
type UserStorageProto struct {
Items map[int64]uint64 `` // @gotags: bson:"items"
/* 152-byte string literal not displayed */
Packs map[int64]uint64 `` // @gotags: bson:"packs"
/* 152-byte string literal not displayed */
RecoveryInfos map[int64]*ItemRecoveryInfoProto `` // @gotags: bson:"recovery_infos"
/* 197-byte string literal not displayed */
// contains filtered or unexported fields
}
Storage
func (*UserStorageProto) Descriptor
deprecated
func (*UserStorageProto) Descriptor() ([]byte, []int)
Deprecated: Use UserStorageProto.ProtoReflect.Descriptor instead.
func (*UserStorageProto) GetItems ¶
func (x *UserStorageProto) GetItems() map[int64]uint64
func (*UserStorageProto) GetPacks ¶
func (x *UserStorageProto) GetPacks() map[int64]uint64
func (*UserStorageProto) GetRecoveryInfos ¶
func (x *UserStorageProto) GetRecoveryInfos() map[int64]*ItemRecoveryInfoProto
func (*UserStorageProto) ProtoMessage ¶
func (*UserStorageProto) ProtoMessage()
func (*UserStorageProto) ProtoReflect ¶
func (x *UserStorageProto) ProtoReflect() protoreflect.Message
func (*UserStorageProto) Reset ¶
func (x *UserStorageProto) Reset()
func (*UserStorageProto) String ¶
func (x *UserStorageProto) String() string
func (*UserStorageProto) Validate ¶
func (m *UserStorageProto) Validate() error
Validate checks the field values on UserStorageProto 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 (*UserStorageProto) ValidateAll ¶
func (m *UserStorageProto) ValidateAll() error
ValidateAll checks the field values on UserStorageProto 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 UserStorageProtoMultiError, or nil if none found.
func (*UserStorageProto) Wrap ¶
func (x *UserStorageProto) Wrap() *UserModuleProto
type UserStorageProtoMultiError ¶
type UserStorageProtoMultiError []error
UserStorageProtoMultiError is an error wrapping multiple validation errors returned by UserStorageProto.ValidateAll() if the designated constraints aren't met.
func (UserStorageProtoMultiError) AllErrors ¶
func (m UserStorageProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserStorageProtoMultiError) Error ¶
func (m UserStorageProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserStorageProtoValidationError ¶
type UserStorageProtoValidationError struct {
// contains filtered or unexported fields
}
UserStorageProtoValidationError is the validation error returned by UserStorageProto.Validate if the designated constraints aren't met.
func (UserStorageProtoValidationError) Cause ¶
func (e UserStorageProtoValidationError) Cause() error
Cause function returns cause value.
func (UserStorageProtoValidationError) Error ¶
func (e UserStorageProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserStorageProtoValidationError) ErrorName ¶
func (e UserStorageProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserStorageProtoValidationError) Field ¶
func (e UserStorageProtoValidationError) Field() string
Field function returns field value.
func (UserStorageProtoValidationError) Key ¶
func (e UserStorageProtoValidationError) Key() bool
Key function returns key value.
func (UserStorageProtoValidationError) Reason ¶
func (e UserStorageProtoValidationError) Reason() string
Reason function returns reason value.
type UserSystemProto ¶
type UserSystemProto struct {
CurrentGenId int64 `protobuf:"varint,1,opt,name=current_gen_id,json=currentGenId,proto3" json:"current_gen_id,omitempty" bson:"current_gen_id"` // @gotags: bson:"current_gen_id" Current Maximum Auto-Increment ID
Events []*WorkerEvent `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty" bson:"events"` // @gotags: bson:"events"
// contains filtered or unexported fields
}
System
func (*UserSystemProto) Descriptor
deprecated
func (*UserSystemProto) Descriptor() ([]byte, []int)
Deprecated: Use UserSystemProto.ProtoReflect.Descriptor instead.
func (*UserSystemProto) GetCurrentGenId ¶
func (x *UserSystemProto) GetCurrentGenId() int64
func (*UserSystemProto) GetEvents ¶
func (x *UserSystemProto) GetEvents() []*WorkerEvent
func (*UserSystemProto) ProtoMessage ¶
func (*UserSystemProto) ProtoMessage()
func (*UserSystemProto) ProtoReflect ¶
func (x *UserSystemProto) ProtoReflect() protoreflect.Message
func (*UserSystemProto) Reset ¶
func (x *UserSystemProto) Reset()
func (*UserSystemProto) String ¶
func (x *UserSystemProto) String() string
func (*UserSystemProto) Validate ¶
func (m *UserSystemProto) Validate() error
Validate checks the field values on UserSystemProto 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 (*UserSystemProto) ValidateAll ¶
func (m *UserSystemProto) ValidateAll() error
ValidateAll checks the field values on UserSystemProto 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 UserSystemProtoMultiError, or nil if none found.
func (*UserSystemProto) Wrap ¶
func (x *UserSystemProto) Wrap() *UserModuleProto
type UserSystemProtoMultiError ¶
type UserSystemProtoMultiError []error
UserSystemProtoMultiError is an error wrapping multiple validation errors returned by UserSystemProto.ValidateAll() if the designated constraints aren't met.
func (UserSystemProtoMultiError) AllErrors ¶
func (m UserSystemProtoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserSystemProtoMultiError) Error ¶
func (m UserSystemProtoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserSystemProtoValidationError ¶
type UserSystemProtoValidationError struct {
// contains filtered or unexported fields
}
UserSystemProtoValidationError is the validation error returned by UserSystemProto.Validate if the designated constraints aren't met.
func (UserSystemProtoValidationError) Cause ¶
func (e UserSystemProtoValidationError) Cause() error
Cause function returns cause value.
func (UserSystemProtoValidationError) Error ¶
func (e UserSystemProtoValidationError) Error() string
Error satisfies the builtin error interface
func (UserSystemProtoValidationError) ErrorName ¶
func (e UserSystemProtoValidationError) ErrorName() string
ErrorName returns error name.
func (UserSystemProtoValidationError) Field ¶
func (e UserSystemProtoValidationError) Field() string
Field function returns field value.
func (UserSystemProtoValidationError) Key ¶
func (e UserSystemProtoValidationError) Key() bool
Key function returns key value.
func (UserSystemProtoValidationError) Reason ¶
func (e UserSystemProtoValidationError) Reason() string
Reason function returns reason value.
type WorkerEvent ¶
type WorkerEvent struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" bson:"id"` // @gotags: bson:"id"
Type int64 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty" bson:"type"` // @gotags: bson:"type"
Args []int64 `protobuf:"varint,3,rep,packed,name=args,proto3" json:"args,omitempty" bson:"args"` // @gotags: bson:"args"
// contains filtered or unexported fields
}
Worker Event
func (*WorkerEvent) Descriptor
deprecated
func (*WorkerEvent) Descriptor() ([]byte, []int)
Deprecated: Use WorkerEvent.ProtoReflect.Descriptor instead.
func (*WorkerEvent) GetArgs ¶
func (x *WorkerEvent) GetArgs() []int64
func (*WorkerEvent) GetId ¶
func (x *WorkerEvent) GetId() int64
func (*WorkerEvent) GetType ¶
func (x *WorkerEvent) GetType() int64
func (*WorkerEvent) ProtoMessage ¶
func (*WorkerEvent) ProtoMessage()
func (*WorkerEvent) ProtoReflect ¶
func (x *WorkerEvent) ProtoReflect() protoreflect.Message
func (*WorkerEvent) Reset ¶
func (x *WorkerEvent) Reset()
func (*WorkerEvent) String ¶
func (x *WorkerEvent) String() string
func (*WorkerEvent) Validate ¶
func (m *WorkerEvent) Validate() error
Validate checks the field values on WorkerEvent 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 (*WorkerEvent) ValidateAll ¶
func (m *WorkerEvent) ValidateAll() error
ValidateAll checks the field values on WorkerEvent 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 WorkerEventMultiError, or nil if none found.
type WorkerEventMultiError ¶
type WorkerEventMultiError []error
WorkerEventMultiError is an error wrapping multiple validation errors returned by WorkerEvent.ValidateAll() if the designated constraints aren't met.
func (WorkerEventMultiError) AllErrors ¶
func (m WorkerEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WorkerEventMultiError) Error ¶
func (m WorkerEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WorkerEventValidationError ¶
type WorkerEventValidationError struct {
// contains filtered or unexported fields
}
WorkerEventValidationError is the validation error returned by WorkerEvent.Validate if the designated constraints aren't met.
func (WorkerEventValidationError) Cause ¶
func (e WorkerEventValidationError) Cause() error
Cause function returns cause value.
func (WorkerEventValidationError) Error ¶
func (e WorkerEventValidationError) Error() string
Error satisfies the builtin error interface
func (WorkerEventValidationError) ErrorName ¶
func (e WorkerEventValidationError) ErrorName() string
ErrorName returns error name.
func (WorkerEventValidationError) Field ¶
func (e WorkerEventValidationError) Field() string
Field function returns field value.
func (WorkerEventValidationError) Key ¶
func (e WorkerEventValidationError) Key() bool
Key function returns key value.
func (WorkerEventValidationError) Reason ¶
func (e WorkerEventValidationError) Reason() string
Reason function returns reason value.
Source Files
¶
- basic.pb.go
- basic.pb.validate.go
- basic_pool.go
- dev.pb.go
- dev.pb.validate.go
- dev_pool.go
- hero.pb.go
- hero.pb.validate.go
- hero_pool.go
- order.pb.go
- order.pb.validate.go
- order_pool.go
- plunder.pb.go
- plunder.pb.validate.go
- plunder_pool.go
- recharge.pb.go
- recharge.pb.validate.go
- recharge_pool.go
- room.pb.go
- room.pb.validate.go
- room_pool.go
- status.pb.go
- status.pb.validate.go
- status_pool.go
- storage.pb.go
- storage.pb.validate.go
- storage_pool.go
- system.pb.go
- system.pb.validate.go
- system_pool.go
- user.pb.go
- user.pb.validate.go
- user_codec.go
- user_pool.go