Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuthNotFound = errors.New("auth not found")
ErrAuthNotFound is returned when the provided email was not found
View Source
var ErrDuplicateAuth = errors.New("auth already exists")
ErrDuplicateAuth is returned when an auth already exists
Functions ¶
This section is empty.
Types ¶
type BaseDatastore ¶
type BaseDatastore interface { CreateAuth(input CreateAuthInput) (*Auth, error) ReadAuth(input ReadAuthInput) (*Auth, error) }
BaseDatastore provides the basic datastore methods
type CreateAuthInput ¶
CreateAuthInput encapsulates the information required to create a single auth in the datastore
type DAO ¶
DAO encapsulates access to the datastore
func (*DAO) CreateAuth ¶
func (dao *DAO) CreateAuth(input CreateAuthInput) (*Auth, error)
CreateAuth creates a new auth in the datastore, returning the newly created auth
type Datastore ¶
type Datastore interface { BaseDatastore }
Datastore provides the interface adopted by the DAO, allowing for mocking
type ReadAuthInput ¶
type ReadAuthInput struct {
Email string
}
ReadAuthInput encapsulates the information required to read a single auth in the datastore
Click to show internal directories.
Click to hide internal directories.