Documentation ¶
Index ¶
- type Options
- type Storage
- func (s *Storage) Ping(ctx context.Context) error
- func (s *Storage) SaveUser(ctx context.Context, email string, hash []byte) (uint64, error)
- func (s *Storage) Stop()
- func (s *Storage) User(ctx context.Context, id string) (*models.User, error)
- func (s *Storage) UserByEmail(ctx context.Context, email string) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { Options Options // contains filtered or unexported fields }
func New ¶
New initializes a new Storage instance with a database connection pool
It ensures a safe pool creation which persists across multiple calls until Stop is invoked.
Click to show internal directories.
Click to hide internal directories.