Documentation ¶
Overview ¶
Package store declares the data stores used to persist and manage collections of domain objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAccounts ¶
func WithAccounts(ctx context.Context, s AccountsStore) context.Context
func WithPassword ¶
func WithPassword(ctx context.Context, s PasswordStore) context.Context
Types ¶
type AccountsStore ¶
type AccountsStore interface {
Create(ctx context.Context, newUser *api.User, email *api.EmailAddress) (*api.User, error)
}
func Accounts ¶
func Accounts(ctx context.Context) AccountsStore
type PasswordStore ¶
func Password ¶
func Password(ctx context.Context) PasswordStore
type Stores ¶
type Stores struct { Accounts AccountsStore Password PasswordStore }
type UserNotFoundError ¶
func (*UserNotFoundError) Error ¶
func (e *UserNotFoundError) Error() string
Directories ¶
Path | Synopsis |
---|---|
Package mongostore implements stores declared in the top-level stores package.
|
Package mongostore implements stores declared in the top-level stores package. |
Click to show internal directories.
Click to hide internal directories.