Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionFinder ¶
SessionFinder is the PG implementation of the interface defined in the domain that allows to find session's information based on various parameters
type SessionRecord ¶
type SessionRecord struct { ID string `db:"id"` UserID string `db:"user_id"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` ExpiresAt time.Time `db:"expires_at"` }
SessionRecord defines fields of a session for pg usage
type SessionStore ¶
SessionStore is the PG implementation of the interface defined in the domain that allows to insert and update session information
func (*SessionStore) Delete ¶
func (s *SessionStore) Delete(ID string) error
func (*SessionStore) DeleteAllForUserID ¶
func (s *SessionStore) DeleteAllForUserID(UserID string) error
type UserFinder ¶
UserFinder is the PG implementation of the interface defined in the domain that allows to find user's information based on various parameters
func (*UserFinder) ByEmail ¶
func (s *UserFinder) ByEmail(email string) (*backapi.User, error)
ByEmail returns the associated user stored with, as email, the parameter given
type UserRecord ¶
type UserRecord struct { ID string `db:"id"` CustomerID string `db:"customer_id"` Firstname string `db:"firstname"` Lastname string `db:"lastname"` Username string `db:"username"` Email string `db:"email"` Password string `db:"password"` Admin bool `db:"admin"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` ConfirmedAt time.Time `db:"confirmed_at"` DeletedAt time.Time `db:"deleted_at"` }
UserRecord defines fields of a user for pg usage
Click to show internal directories.
Click to hide internal directories.