Documentation
¶
Index ¶
- Variables
- func EnumStringSchema(values ...string) map[string]interface{}
- func HasOnlyKeys(input map[string]interface{}, allowed ...string) bool
- func InputObject(input interface{}) (map[string]interface{}, bool)
- func InputSchema(properties map[string]interface{}, required ...string) map[string]interface{}
- func LogInternalFailure(operation string)
- func NewRandomToken() (string, error)
- func NewVerificationCode() (string, error)
- func NormalizeEmail(value string) (string, error)
- func NormalizePhone(value string) (string, error)
- func PhoneSchema() map[string]interface{}
- func RequiredRawString(input map[string]interface{}, name string) (string, bool)
- func RequiredString(input map[string]interface{}, name string) (string, bool)
- func SecureStringEqual(left, right string) bool
- func StringSchema(format string, minLength int, maxLength int) map[string]interface{}
- func TokenHash(token string) string
- func TokenInputSchema(name string) map[string]interface{}
- func VerificationCodeHash(secret, recipient, code string) string
- func VerificationCodeSchema() map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
View Source
var VerificationCodePattern = regexp.MustCompile(`^[0-9]{6}$`)
Functions ¶
func EnumStringSchema ¶
func HasOnlyKeys ¶
func InputObject ¶
func InputSchema ¶
func LogInternalFailure ¶
func LogInternalFailure(operation string)
func NewRandomToken ¶
func NewVerificationCode ¶
func NormalizeEmail ¶
func NormalizePhone ¶
func PhoneSchema ¶
func PhoneSchema() map[string]interface{}
func RequiredRawString ¶
func SecureStringEqual ¶
func StringSchema ¶
func TokenInputSchema ¶
func VerificationCodeHash ¶
func VerificationCodeSchema ¶
func VerificationCodeSchema() map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.