Documentation
¶
Index ¶
- type Storage
- func (s *Storage) Clear() error
- func (s *Storage) Delete(key string) error
- func (s *Storage) ExportJSON() ([]byte, error)
- func (s *Storage) ExportJSONToFile(path string) error
- func (s *Storage) Get(key string) any
- func (s *Storage) GetBool(key string) (bool, bool)
- func (s *Storage) GetInt(key string) (int, bool)
- func (s *Storage) GetJSON(key string) map[string]any
- func (s *Storage) GetJSONInto(key string, out any) error
- func (s *Storage) GetListData(key string) []any
- func (s *Storage) GetListJSONInto(key string, out any) error
- func (s *Storage) GetString(key string) (string, bool)
- func (s *Storage) GetStringList(key string) []string
- func (s *Storage) ImportJSON(data []byte) error
- func (s *Storage) ImportJSONFile(path string) error
- func (s *Storage) Initialize() error
- func (s *Storage) Keys() []string
- func (s *Storage) MergeJSON(data []byte) error
- func (s *Storage) MergeJSONFile(path string) error
- func (s *Storage) RestoreFromBackup() error
- func (s *Storage) Set(key string, value any) error
- func (s *Storage) SetAuto(key string, value any) error
- func (s *Storage) SetListStruct(key string, value any) error
- func (s *Storage) SetStruct(key string, value any) error
- type TokenStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
Path string
BackupPath string
Key []byte
// contains filtered or unexported fields
}
var GlobalStore *Storage
func (*Storage) ExportJSON ¶
func (*Storage) ExportJSONToFile ¶
func (*Storage) GetListData ¶
func (*Storage) GetStringList ¶
func (*Storage) ImportJSON ¶
func (*Storage) ImportJSONFile ¶
func (*Storage) Initialize ¶
func (*Storage) MergeJSONFile ¶
func (*Storage) RestoreFromBackup ¶
type TokenStore ¶
Click to show internal directories.
Click to hide internal directories.