store

package
v0.0.0-...-27af6da Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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