Versions in this module Expand all Collapse all v0 v0.5.2 Apr 25, 2018 v0.5.1 Apr 12, 2018 Changes in this version + var ErrAccoundDoesNotExist = errors.New("Account does not exist") + var ErrDatastoreConnection = errors.New("Unable to connect to datastore") + var ErrPasswordDoesNotMatch = errors.New("Password does not match") + type Account struct + Email string + Firstname string + ID int + Lastname string + Locked bool + Token string + TokenUsed bool + Username string + func (a *Account) BasicAuthentication(password string) error + func (a *Account) Get() error + func (a *Account) Lock() error + func (a *Account) NewJwtToken(audience string) (string, time.Time, error) + func (a *Account) Save() error + func (a *Account) Unlock() error + func (a *Account) ValidJwtToken(rawToken, audience string) (bool, error) + func (a *Account) WithContext(ctx *db.DatabaseContext) + type BasicAuthMembership struct + Account *Account + AccountID int + Created time.Time + ID int + PasswordHash string + func (b *BasicAuthMembership) HashPassword(password string) error + func (b *BasicAuthMembership) PasswordMatch(password string) bool + func (b *BasicAuthMembership) WithContext(ctx *db.DatabaseContext) + type ErrFieldInvalid struct + Message string + func (e ErrFieldInvalid) Error() string + func (e ErrFieldInvalid) Result(fieldname string) interface{} + type ErrFieldRequired struct + Message string + func (e ErrFieldRequired) Error() string + func (e ErrFieldRequired) Result(fieldname string) interface{} + type ErrInvalidLocation struct + Message string + Suggestions []geo.Result + func (e ErrInvalidLocation) Error() string + func (e ErrInvalidLocation) Result(fieldname string) interface{} + type ErrorStack []ErrorStackResults + func NewErrorStack(fieldname string, err error) ErrorStack + func (stack *ErrorStack) Append(fieldname string, err error) + func (stack ErrorStack) Error() string + func (stack ErrorStack) HasErrors() bool + func (stack ErrorStack) Result(fieldname string) interface{} + type ErrorStackResults interface + type Transmission struct + AccountID int + AgencyKey int + Created time.Time + ID int + Modified time.Time + Raw []byte + RequestKey string + Status string + func (transmission *Transmission) Get(ctx *db.DatabaseContext) error + func (transmission *Transmission) Save(ctx *db.DatabaseContext) error + type ValidationResult interface + Result func(fieldname string) interface{}