Documentation ¶
Index ¶
- type Authorization
- type DB
- func (db *DB) Begintx(ctx context.Context) (*sqlx.Tx, error)
- func (r *DB) CreateUser(ctx context.Context, user *models.User, salt, password string) error
- func (r *DB) GetPasswordByUserID(ctx context.Context, userID uint64) (string, string, error)
- func (r *DB) GetUserByEmail(ctx context.Context, user *models.LoginUser) (uint64, error)
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
type Repository ¶
type Repository struct {
Authorization
}
func NewRepository ¶
func NewRepository(db *sqlx.DB) *Repository
Click to show internal directories.
Click to hide internal directories.