store

package
v0.0.0-...-5a404b9 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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
}

func NewStore

func NewStore(ctx context.Context, conf *config.Config) (*Store, error)

NewStore создаёт и возвращает новый экземпляр хранилища.

func (*Store) Close

func (s *Store) Close() error

Close вызывается при завершение программы, закрывает соединение и возвращает ошибку в случае не удачи.

func (*Store) GetDB

func (s *Store) GetDB() *sql.DB

func (*Store) Init

func (s *Store) Init(ctx context.Context, conf *config.Config) error

Init вызывается при запуске программы, инициализирует соединение и возвращает ошибку в случае не удачи.

type UserStore

type UserStore struct {
}

func NewUserStore

func NewUserStore() *UserStore

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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