Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flag ¶ added in v0.6.0
type Flag struct{ DB *database.Transaction }
Flag is the implementation of transaction for the flag repository
type OTP ¶ added in v0.6.0
type OTP struct{ DB *database.Transaction }
OTP is the implementation of transaction for the otp repository
type PGAuth ¶
type PGAuth struct{ DB *database.Transaction }
PGAuth is the implementation of transaction for the auth repository
func (*PGAuth) CreateAccount ¶
CreateAccount register the user in the database
type Session ¶ added in v0.6.0
type Session struct{ DB *database.Transaction }
Session is the implementation of transaction for the session repository
func (*Session) Create ¶ added in v0.6.0
func (pg *Session) Create(userID *uuid.UUID, clientIP, userAgent *string) (sessionID *uuid.UUID, err error)
Create add session of the user in database
type User ¶ added in v0.6.0
type User struct{ DB *database.Transaction }
PGOTP is the implementation of transaction for the user repository
func (*User) AccountExists ¶ added in v0.6.0
AccountExists validate whether an account with the same identifier already exists
func (*User) ChangePassword ¶ added in v0.6.0
func (pg *User) ChangePassword(in *domain.ChangePassword) error
Click to show internal directories.
Click to hide internal directories.