Documentation
¶
Index ¶
- type SessionRepository
- type UserRepository
- func (r *UserRepository) Add(p domain.User) error
- func (r *UserRepository) GetUserByCredentials(credentials domain.Credentials) (*domain.User, error)
- func (r *UserRepository) GetUserByID(id string) (*domain.User, error)
- func (r *UserRepository) SetLock(id string, lock *domain.Lock) error
- func (r *UserRepository) SetPassword(id, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionRepository ¶
func NewSessionRepository ¶
func NewSessionRepository(options map[string]interface{}) (*SessionRepository, error)
func (*SessionRepository) DeleteSession ¶
func (st *SessionRepository) DeleteSession(s domain.Session) error
func (*SessionRepository) GetSessionByID ¶
func (st *SessionRepository) GetSessionByID(id string) (*domain.Session, error)
func (*SessionRepository) PutSession ¶
func (st *SessionRepository) PutSession(s domain.Session) error
type UserRepository ¶
func NewRepository ¶
func NewRepository(ctx context.Context, options map[string]interface{}, logger *log.Logger) (*UserRepository, error)
NewRepository creates a PSQL implementation of a secrets repository
func (*UserRepository) GetUserByCredentials ¶
func (r *UserRepository) GetUserByCredentials(credentials domain.Credentials) (*domain.User, error)
func (*UserRepository) GetUserByID ¶
func (r *UserRepository) GetUserByID(id string) (*domain.User, error)
func (*UserRepository) SetLock ¶
func (r *UserRepository) SetLock(id string, lock *domain.Lock) error
func (*UserRepository) SetPassword ¶
func (r *UserRepository) SetPassword(id, password string) error
Click to show internal directories.
Click to hide internal directories.