Documentation
¶
Index ¶
- Variables
- func DeleteUserDataDomain(d *UserData, pointer unsafe.Pointer)
- func DeleteUserDataFight(d *UserData, pointer unsafe.Pointer)
- func DeleteUserDataHistory(d *UserData, pointer unsafe.Pointer)
- func DeleteUserDataItem(d *UserData, p unsafe.Pointer)
- func DeleteUserDataPlayer(d *UserData, p unsafe.Pointer)
- func SwapUserDataDomain(d *UserData, pointer unsafe.Pointer)
- func SwapUserDataFight(d *UserData, pointer unsafe.Pointer)
- func SwapUserDataHistory(d *UserData, pointer unsafe.Pointer)
- func SwapUserDataItem(d *UserData, p unsafe.Pointer)
- func SwapUserDataPlayer(d *UserData, p unsafe.Pointer)
- func SwapUserDataUser(d *UserData, p unsafe.Pointer)
- type DBUserDataInterface
- type Domain
- type Fight
- type History
- type Item
- type Player
- type User
- type UserData
- func (d *UserData) ClearKeepalive()
- func (d *UserData) Commit()
- func (d *UserData) DeleteDomain(id bson.ObjectID)
- func (d *UserData) DeleteFight(id int64)
- func (d *UserData) DeleteHistory(id int)
- func (d *UserData) DeleteItem(id int64)
- func (d *UserData) DeletePlayer(id int64)
- func (d *UserData) DoDB(dbFace DBUserDataInterface) error
- func (d *UserData) DomainKAIndex() int64
- func (d *UserData) FightKAIndex() int64
- func (d *UserData) GetDomain(id bson.ObjectID) (*Domain, bool)
- func (d *UserData) GetFight(id int64) (*Fight, bool)
- func (d *UserData) GetHistory(id int) (History, bool)
- func (d *UserData) GetItem(id int64) (Item, bool)
- func (d *UserData) GetPlayer(id int64) (*Player, bool)
- func (d *UserData) GetUser() *User
- func (d *UserData) GetUserReadOnly() *User
- func (d *UserData) HistoryKAIndex() int64
- func (d *UserData) Init()
- func (d *UserData) ItemKAIndex() int64
- func (d *UserData) LenDomain() int
- func (d *UserData) LenFight() int
- func (d *UserData) LenHistory() int
- func (d *UserData) LenItem() int
- func (d *UserData) LenPlayer() int
- func (d *UserData) PlayerKAIndex() int64
- func (d *UserData) RangeDomains(f func(v *Domain) bool)
- func (d *UserData) RangeFights(f func(v *Fight) bool)
- func (d *UserData) RangeHistorys(f func(v *History) bool)
- func (d *UserData) RangeItems(f func(k int64, v Item) bool)
- func (d *UserData) RangePlayers(f func(k int64, v *Player) bool)
- func (d *UserData) Rollback()
- func (d *UserData) SaveDomain(save *Domain)
- func (d *UserData) SaveFight(save *Fight)
- func (d *UserData) SaveHistory(save History)
- func (d *UserData) SaveItem(v Item)
- func (d *UserData) SavePlayer(v *Player)
- func (d *UserData) SaveUser()
- func (d *UserData) UserKAIndex() int64
Constants ¶
This section is empty.
Variables ¶
var DeleteSliceUserDataFuncSlice = [...]func(*UserData, unsafe.Pointer){ 0: DeleteUserDataDomain, 1: DeleteUserDataFight, 2: DeleteUserDataHistory, 3: DeleteUserDataItem, 4: DeleteUserDataPlayer, }
var ResetSliceUserDataFuncSlice = [...]func(unsafe.Pointer){ 0: func(pointer unsafe.Pointer) { (*Domain)(pointer).Reset() }, 1: func(pointer unsafe.Pointer) { (*Fight)(pointer).Reset() }, 2: func(pointer unsafe.Pointer) { (*History)(pointer).Reset() }, 3: func(pointer unsafe.Pointer) { (*Item)(pointer).Reset() }, 4: func(pointer unsafe.Pointer) { (*Player)(pointer).Reset() }, }
var ResetUserDataFuncSlice = [...]func(unsafe.Pointer){ 0: func(pointer unsafe.Pointer) { (*User)(pointer).Reset() }, }
var SaveSliceUserDataFuncSlice = [...]func(*UserData, unsafe.Pointer){ 0: SwapUserDataDomain, 1: SwapUserDataFight, 2: SwapUserDataHistory, 3: SwapUserDataItem, 4: SwapUserDataPlayer, }
var SaveUserDataFuncSlice = [...]func(*UserData, unsafe.Pointer){ 0: SwapUserDataUser, }
Functions ¶
func DeleteUserDataDomain ¶
func DeleteUserDataFight ¶
func DeleteUserDataHistory ¶
func DeleteUserDataItem ¶
func DeleteUserDataPlayer ¶
func SwapUserDataDomain ¶
func SwapUserDataFight ¶
func SwapUserDataHistory ¶
func SwapUserDataItem ¶
func SwapUserDataPlayer ¶
func SwapUserDataUser ¶
Types ¶
type DBUserDataInterface ¶
type DBUserDataInterface interface {
SaveUser(isNew bool, d *User) error
SaveDomain(isNew bool, d *Domain) error
DeleteDomain(d *Domain) error
SaveFight(isNew bool, d *Fight) error
DeleteFight(d *Fight) error
SaveHistory(isNew bool, d *History) error
DeleteHistory(d *History) error
SaveItem(isNew bool, d *Item) error
DeleteItem(d *Item) error
SavePlayer(isNew bool, d *Player) error
DeletePlayer(d *Player) error
}
type Domain ¶
func (*Domain) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Domain.
func (*Domain) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Domain) ResetNoSelf ¶
func (in *Domain) ResetNoSelf()
ResetNoSelf puts the given field value back into the pool.
func (*Domain) ResetOnlySelf ¶
func (in *Domain) ResetOnlySelf()
ResetOnlySelf puts the given value back into the pool.
type Fight ¶
func (*Fight) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Fight.
func (*Fight) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Fight) ResetNoSelf ¶
func (in *Fight) ResetNoSelf()
ResetNoSelf puts the given field value back into the pool.
func (*Fight) ResetOnlySelf ¶
func (in *Fight) ResetOnlySelf()
ResetOnlySelf puts the given value back into the pool.
type History ¶
func (*History) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new History.
func (*History) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*History) ResetNoSelf ¶
func (in *History) ResetNoSelf()
ResetNoSelf puts the given field value back into the pool.
func (*History) ResetOnlySelf ¶
func (in *History) ResetOnlySelf()
ResetOnlySelf puts the given value back into the pool.
type Item ¶
func (*Item) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Item.
func (*Item) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Item) ResetNoSelf ¶
func (in *Item) ResetNoSelf()
ResetNoSelf puts the given field value back into the pool.
func (*Item) ResetOnlySelf ¶
func (in *Item) ResetOnlySelf()
ResetOnlySelf puts the given value back into the pool.
type Player ¶
func (*Player) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Player.
func (*Player) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Player) ResetNoSelf ¶
func (in *Player) ResetNoSelf()
ResetNoSelf puts the given field value back into the pool.
func (*Player) ResetOnlySelf ¶
func (in *Player) ResetOnlySelf()
ResetOnlySelf puts the given value back into the pool.
type User ¶
func (*User) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.
func (*User) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*User) ResetNoSelf ¶
func (in *User) ResetNoSelf()
ResetNoSelf puts the given field value back into the pool.
func (*User) ResetOnlySelf ¶
func (in *User) ResetOnlySelf()
ResetOnlySelf puts the given value back into the pool.
type UserData ¶
+k8s:deepcopy-gen=false
+game:keepalive-gen=true
func (*UserData) ClearKeepalive ¶
func (d *UserData) ClearKeepalive()
func (*UserData) DeleteDomain ¶
func (*UserData) DeleteFight ¶
func (*UserData) DeleteHistory ¶
func (*UserData) DeleteItem ¶
func (*UserData) DeletePlayer ¶
func (*UserData) DoDB ¶
func (d *UserData) DoDB(dbFace DBUserDataInterface) error