Documentation ¶
Index ¶
- Variables
- type EmailVerification
- type Postgres
- func (p *Postgres) DeleteByID(ctx context.Context, id string) error
- func (p *Postgres) Insert(ctx context.Context, u *User) (*User, error)
- func (p *Postgres) InsertEmailVerification(ctx context.Context, in EmailVerification) error
- func (p *Postgres) SelectByEmail(ctx context.Context, email string) (*User, error)
- func (p *Postgres) SelectByID(ctx context.Context, id string) (*User, error)
- type User
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type EmailVerification ¶
type Postgres ¶
Postgres represents a user repository instance with the given database connection
func NewPostgres ¶
New creates a new user repository instance
func (*Postgres) InsertEmailVerification ¶
func (p *Postgres) InsertEmailVerification(ctx context.Context, in EmailVerification) error
func (*Postgres) SelectByEmail ¶
Click to show internal directories.
Click to hide internal directories.