validators

package
v0.0.0-...-10e9d8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStringArrayEqual

func IsStringArrayEqual(a, b []string) bool

IsStringArrayEqual validates if string array are equal. This does check if the order is same

func IsValidEmail

func IsValidEmail(email string) bool

IsValidEmail validates email

func IsValidEmailTemplateEventName

func IsValidEmailTemplateEventName(eventName string) bool

IsValidEmailTemplateEventName function to validate email template events

func IsValidOrigin

func IsValidOrigin(url string) bool

IsValidOrigin validates origin based on ALLOWED_ORIGINS

func IsValidPassword

func IsValidPassword(password string) error

ValidatePassword to validate the password against the following policy min char length: 6 max char length: 36 at least one upper case letter at least one lower case letter at least one digit at least one special character

func IsValidRoles

func IsValidRoles(userRoles []string, roles []string) bool

IsValidRoles validates roles

func IsValidVerificationIdentifier

func IsValidVerificationIdentifier(identifier string) bool

IsValidVerificationIdentifier validates verification identifier that is used to identify the type of verification request

func IsValidWebhookEventName

func IsValidWebhookEventName(eventName string) bool

IsValidWebhookEventName to validate webhook event name

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL