Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDuplicateEmail = errors.New("duplicate email") ErrRecordNotFound = errors.New("record not found") )
View Source
var AnonymousUser = &User{}
Functions ¶
func ValidateEmail ¶
ValidateEmail rules the email validation
func ValidatePassword ¶
ValidatePassword rules the password validation
func ValidateUser ¶
ValidateUser rules the password and email validations
Types ¶
type AccountRepository ¶
type AccountRepository interface { CreateUser(ctx context.Context, user *User) error GetUser(ctx context.Context, email string) (*User, error) ServiceStatus(ctx context.Context) error }
func NewAccountRepository ¶
func NewAccountRepository(conn database.Connection) AccountRepository
Click to show internal directories.
Click to hide internal directories.