dbv1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserHeroListProtoPool = newUserHeroListProtoPool()
	UserHeroProtoPool     = newUserHeroProtoPool()
)
View Source
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.

View Source
var (
	OrderProtoPool     = newOrderProtoPool()
	OrderInfoProtoPool = newOrderInfoProtoPool()
)
View Source
var (
	UserPlunderListProtoPool = newUserPlunderListProtoPool()
	UserPlunderProtoPool     = newUserPlunderProtoPool()
)
View Source
var (
	UserStorageProtoPool      = newUserStorageProtoPool()
	ItemRecoveryInfoProtoPool = newItemRecoveryInfoProtoPool()
)
View Source
var (
	UserSystemProtoPool = newUserSystemProtoPool()
	WorkerEventPool     = newWorkerEventPool()
)
View Source
var (
	UserProtoPool       = newUserProtoPool()
	UserModuleProtoPool = newUserModuleProtoPool()
)
View Source
var File_player_v1_basic_proto protoreflect.FileDescriptor
View Source
var File_player_v1_dev_proto protoreflect.FileDescriptor
View Source
var File_player_v1_hero_proto protoreflect.FileDescriptor
View Source
var File_player_v1_order_proto protoreflect.FileDescriptor
View Source
var File_player_v1_plunder_proto protoreflect.FileDescriptor
View Source
var File_player_v1_recharge_proto protoreflect.FileDescriptor
View Source
var File_player_v1_room_proto protoreflect.FileDescriptor
View Source
var File_player_v1_status_proto protoreflect.FileDescriptor
View Source
var File_player_v1_storage_proto protoreflect.FileDescriptor
View Source
var File_player_v1_system_proto protoreflect.FileDescriptor
View Source
var File_player_v1_user_proto protoreflect.FileDescriptor
View Source
var (
	UserBasicProtoPool = newUserBasicProtoPool()
)
View Source
var (
	UserDevProtoPool = newUserDevProtoPool()
)
View Source
var (
	UserRechargeProtoPool = newUserRechargeProtoPool()
)
View Source
var (
	UserRoomProtoPool = newUserRoomProtoPool()
)
View Source
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

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

Cause function returns cause value.

func (ItemRecoveryInfoProtoValidationError) Error

Error satisfies the builtin error interface

func (ItemRecoveryInfoProtoValidationError) ErrorName

ErrorName returns error name.

func (ItemRecoveryInfoProtoValidationError) Field

Field function returns field value.

func (ItemRecoveryInfoProtoValidationError) Key

Key function returns key value.

func (ItemRecoveryInfoProtoValidationError) Reason

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) Enum

func (x OrderAckState) Enum() *OrderAckState

func (OrderAckState) EnumDescriptor deprecated

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

Deprecated: Use OrderAckState.Descriptor instead.

func (OrderAckState) Number

func (OrderAckState) String

func (x OrderAckState) String() string

func (OrderAckState) Type

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

Cause function returns cause value.

func (OrderInfoProtoValidationError) Error

Error satisfies the builtin error interface

func (OrderInfoProtoValidationError) ErrorName

func (e OrderInfoProtoValidationError) ErrorName() string

ErrorName returns error name.

func (OrderInfoProtoValidationError) Field

Field function returns field value.

func (OrderInfoProtoValidationError) Key

Key function returns key value.

func (OrderInfoProtoValidationError) Reason

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

Error satisfies the builtin error interface

func (OrderProtoValidationError) ErrorName

func (e OrderProtoValidationError) ErrorName() string

ErrorName returns error name.

func (OrderProtoValidationError) Field

Field function returns field value.

func (OrderProtoValidationError) Key

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

Cause function returns cause value.

func (UserBasicProtoValidationError) Error

Error satisfies the builtin error interface

func (UserBasicProtoValidationError) ErrorName

func (e UserBasicProtoValidationError) ErrorName() string

ErrorName returns error name.

func (UserBasicProtoValidationError) Field

Field function returns field value.

func (UserBasicProtoValidationError) Key

Key function returns key value.

func (UserBasicProtoValidationError) Reason

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

Cause function returns cause value.

func (UserDevProtoValidationError) Error

Error satisfies the builtin error interface

func (UserDevProtoValidationError) ErrorName

func (e UserDevProtoValidationError) ErrorName() string

ErrorName returns error name.

func (UserDevProtoValidationError) Field

Field function returns field value.

func (UserDevProtoValidationError) Key

Key function returns key value.

func (UserDevProtoValidationError) Reason

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

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

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

Cause function returns cause value.

func (UserHeroListProtoValidationError) Error

Error satisfies the builtin error interface

func (UserHeroListProtoValidationError) ErrorName

ErrorName returns error name.

func (UserHeroListProtoValidationError) Field

Field function returns field value.

func (UserHeroListProtoValidationError) Key

Key function returns key value.

func (UserHeroListProtoValidationError) Reason

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

Cause function returns cause value.

func (UserHeroProtoValidationError) Error

Error satisfies the builtin error interface

func (UserHeroProtoValidationError) ErrorName

func (e UserHeroProtoValidationError) ErrorName() string

ErrorName returns error name.

func (UserHeroProtoValidationError) Field

Field function returns field value.

func (UserHeroProtoValidationError) Key

Key function returns key value.

func (UserHeroProtoValidationError) Reason

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

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

Cause function returns cause value.

func (UserModuleProtoValidationError) Error

Error satisfies the builtin error interface

func (UserModuleProtoValidationError) ErrorName

func (e UserModuleProtoValidationError) ErrorName() string

ErrorName returns error name.

func (UserModuleProtoValidationError) Field

Field function returns field value.

func (UserModuleProtoValidationError) Key

Key function returns key value.

func (UserModuleProtoValidationError) Reason

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

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

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

Cause function returns cause value.

func (UserPlunderListProtoValidationError) Error

Error satisfies the builtin error interface

func (UserPlunderListProtoValidationError) ErrorName

ErrorName returns error name.

func (UserPlunderListProtoValidationError) Field

Field function returns field value.

func (UserPlunderListProtoValidationError) Key

Key function returns key value.

func (UserPlunderListProtoValidationError) Reason

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

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

Cause function returns cause value.

func (UserPlunderProtoValidationError) Error

Error satisfies the builtin error interface

func (UserPlunderProtoValidationError) ErrorName

ErrorName returns error name.

func (UserPlunderProtoValidationError) Field

Field function returns field value.

func (UserPlunderProtoValidationError) Key

Key function returns key value.

func (UserPlunderProtoValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use UserProto.ProtoReflect.Descriptor instead.

func (*UserProto) GetId

func (x *UserProto) GetId() int64

func (*UserProto) GetModules

func (x *UserProto) GetModules() map[string]*UserModuleProto

func (*UserProto) GetServerVersion

func (x *UserProto) GetServerVersion() string

func (*UserProto) GetSid

func (x *UserProto) GetSid() int64

func (*UserProto) GetVersion

func (x *UserProto) GetVersion() int64

func (*UserProto) ProtoMessage

func (*UserProto) ProtoMessage()

func (*UserProto) ProtoReflect

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

func (*UserProto) Reset

func (x *UserProto) Reset()

func (*UserProto) String

func (x *UserProto) String() string

func (*UserProto) Validate

func (m *UserProto) Validate() error

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

func (m *UserProto) ValidateAll() error

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

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

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

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

Cause function returns cause value.

func (UserRechargeProtoValidationError) Error

Error satisfies the builtin error interface

func (UserRechargeProtoValidationError) ErrorName

ErrorName returns error name.

func (UserRechargeProtoValidationError) Field

Field function returns field value.

func (UserRechargeProtoValidationError) Key

Key function returns key value.

func (UserRechargeProtoValidationError) Reason

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

Cause function returns cause value.

func (UserRoomProtoValidationError) Error

Error satisfies the builtin error interface

func (UserRoomProtoValidationError) ErrorName

func (e UserRoomProtoValidationError) ErrorName() string

ErrorName returns error name.

func (UserRoomProtoValidationError) Field

Field function returns field value.

func (UserRoomProtoValidationError) Key

Key function returns key value.

func (UserRoomProtoValidationError) Reason

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

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

Cause function returns cause value.

func (UserStatusProtoValidationError) Error

Error satisfies the builtin error interface

func (UserStatusProtoValidationError) ErrorName

func (e UserStatusProtoValidationError) ErrorName() string

ErrorName returns error name.

func (UserStatusProtoValidationError) Field

Field function returns field value.

func (UserStatusProtoValidationError) Key

Key function returns key value.

func (UserStatusProtoValidationError) Reason

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

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

Cause function returns cause value.

func (UserStorageProtoValidationError) Error

Error satisfies the builtin error interface

func (UserStorageProtoValidationError) ErrorName

ErrorName returns error name.

func (UserStorageProtoValidationError) Field

Field function returns field value.

func (UserStorageProtoValidationError) Key

Key function returns key value.

func (UserStorageProtoValidationError) Reason

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

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

Cause function returns cause value.

func (UserSystemProtoValidationError) Error

Error satisfies the builtin error interface

func (UserSystemProtoValidationError) ErrorName

func (e UserSystemProtoValidationError) ErrorName() string

ErrorName returns error name.

func (UserSystemProtoValidationError) Field

Field function returns field value.

func (UserSystemProtoValidationError) Key

Key function returns key value.

func (UserSystemProtoValidationError) Reason

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

Cause function returns cause value.

func (WorkerEventValidationError) Error

Error satisfies the builtin error interface

func (WorkerEventValidationError) ErrorName

func (e WorkerEventValidationError) ErrorName() string

ErrorName returns error name.

func (WorkerEventValidationError) Field

Field function returns field value.

func (WorkerEventValidationError) Key

Key function returns key value.

func (WorkerEventValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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