Documentation
¶
Index ¶
- func ApplyMigrations(db *sql.DB, dbName string) error
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) CreateUser(ctx context.Context, user *models.User) error
- func (s *Storage) GetUserByUsername(ctx context.Context, name string) (models.User, error)
- func (s *Storage) UserExists(ctx context.Context, username, email string) (bool, error)
- func (s *Storage) UserExistsByID(ctx context.Context, userID int64) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
func (*Storage) CreateUser ¶
func (*Storage) GetUserByUsername ¶
func (*Storage) UserExists ¶
Click to show internal directories.
Click to hide internal directories.