Documentation ¶
Index ¶
- func NewStore(dsn string, logger *logrus.Logger) (store.Store, error)
- type Store
- func (s *Store) Create(user *types.User) error
- func (s *Store) Delete(user *types.User) error
- func (s *Store) GetAll() ([]types.User, error)
- func (s *Store) GetByEmail(email string) (*types.User, error)
- func (s *Store) GetByID(id string) (*types.User, error)
- func (s *Store) Migrate() error
- func (s *Store) Update(user *types.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an implementation of Store to interact with a postgres compatible backend
func (*Store) GetByEmail ¶
GetByEmail loads a user from the store by their email
Directories ¶
Path | Synopsis |
---|---|
Code generated for package migrations by go-bindata DO NOT EDIT.
|
Code generated for package migrations by go-bindata DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.