Documentation
¶
Index ¶
- func NewPostgresDB(ctx context.Context, cfg *config.DBConfig) (*pgx.Conn, error)
- type Repository
- type User
- type UserRepo
- func (r *UserRepo) Create(ctx context.Context, user *model.User) error
- func (r *UserRepo) ExistsByLogin(ctx context.Context, login string) bool
- func (r *UserRepo) FindByID(ctx context.Context, id string) (*model.User, error)
- func (r *UserRepo) FindByLogin(ctx context.Context, login string) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func NewUserRepo(db *pgx.Conn) *UserRepo
func (*UserRepo) ExistsByLogin ¶
Click to show internal directories.
Click to hide internal directories.