storage

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func New

func New(aCtx context.Context, path string, log *svclogger.Log) (*Storage, error)

func (*Storage) AddUser

func (s *Storage) AddUser(u models.User) error

func (*Storage) DeleteUser

func (s *Storage) DeleteUser(tgUserId int64) error

func (*Storage) GetActiveUserByCurrentDay

func (s *Storage) GetActiveUserByCurrentDay() (int64, error)

func (*Storage) GetListActiveUsers

func (s *Storage) GetListActiveUsers() ([]models.User, error)

func (*Storage) InitDB

func (s *Storage) InitDB() error

type StorageCfg

type StorageCfg struct {
	DBType string `yaml:"dbType" json:"dbType" validate:"required"`
	Path   string `yaml:"path" json:"path" validate:"required"`
}

Jump to

Keyboard shortcuts

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