Documentation ¶
Index ¶
- Variables
- func MustContainLowercase(password string) error
- func MustContainNumber(password string) error
- func MustContainSpecialChar(password string) error
- func MustContainUppercase(password string) error
- func NewSessionID() string
- type Customer
- type PasswordPolicy
- type PasswordPolicyError
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCustomerExists = errors.New("customer already exists") ErrCustomerNotFound = errors.New("customer not found") )
View Source
var ErrSessionNotFound = errors.New("session not found")
Functions ¶
func MustContainLowercase ¶
func MustContainNumber ¶
func MustContainSpecialChar ¶
func MustContainUppercase ¶
func NewSessionID ¶
func NewSessionID() string
Types ¶
type Customer ¶
type Customer struct {
// contains filtered or unexported fields
}
func NewCustomer ¶
type PasswordPolicy ¶
func MaxLength ¶
func MaxLength(n int) PasswordPolicy
type PasswordPolicyError ¶
type PasswordPolicyError string
func (PasswordPolicyError) Error ¶
func (e PasswordPolicyError) Error() string
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) CustomerID ¶
func (*Session) Invalidate ¶
func (s *Session) Invalidate()
Click to show internal directories.
Click to hide internal directories.