Documentation ¶
Index ¶
- type Store
- func (store *Store) Add(logs ...gacha.Log)
- func (store *Store) BackupAndSave(filename string) error
- func (store *Store) Load(filename string) error
- func (store *Store) LoadIfExists(filename string) error
- func (store *Store) Save(filename string) error
- func (store *Store) Unique() []gacha.Log
- func (store *Store) Update(auth *auths.Auth, f func(log gacha.Log)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store 是抽卡记录存储
func (*Store) BackupAndSave ¶
BackupAndSave 备份并将抽卡记录写入文件
func (*Store) LoadIfExists ¶
LoadIfExists 从文件读取抽卡记录,如果文件不存在则忽略
Click to show internal directories.
Click to hide internal directories.