Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FileStore = &FileStorage{}
View Source
var SQLiteStore = &SQLiteStorage{}
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage struct{}
func (*FileStorage) Init ¶
func (fs *FileStorage) Init() error
func (*FileStorage) Read ¶
func (fs *FileStorage) Read(userId string) (interface{}, error)
func (*FileStorage) Write ¶
func (fs *FileStorage) Write(userId string, data interface{}) error
type SQLiteStorage ¶
type SQLiteStorage struct {
// contains filtered or unexported fields
}
func (*SQLiteStorage) Close ¶
func (s *SQLiteStorage) Close() error
func (*SQLiteStorage) Init ¶
func (s *SQLiteStorage) Init() error
func (*SQLiteStorage) Read ¶
func (s *SQLiteStorage) Read(userId string) (interface{}, error)
func (*SQLiteStorage) Write ¶
func (s *SQLiteStorage) Write(userId string, data interface{}) error
Click to show internal directories.
Click to hide internal directories.