validator

package
v0.0.0-...-d39f515 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DomainRegexpPattern = "^([a-zA-Z0-9]{1}[a-zA-Z0-9_-]{0,62})(\\.[a-zA-Z0-9_]{1}[a-zA-Z0-9_-]{0,62})*?(\\.[a-zA-Z]{1}[a-zA-Z0-9]{0,62})\\.?$"
)

Variables

This section is empty.

Functions

func ClickhouseTimeZone

func ClickhouseTimeZone(dp *depot.Depot, v string) bool

func Domain

func Domain(v string) bool

func Email

func Email(v string) bool

func GoogleSearchConsoleSiteUrl

func GoogleSearchConsoleSiteUrl(dp *depot.Depot, organizationId uint64, v string) bool

func InSlice

func InSlice[T comparable](s []T, v T) bool

func NonDisposableEmail

func NonDisposableEmail(dp *depot.Depot, v string) (isValid bool)

func OrganizationOwner

func OrganizationOwner(dp *depot.Depot, id uint64) bool

func OrganizationSiteId

func OrganizationSiteId(dp *depot.Depot, organizationId uint64, siteId uint64) bool

func OrganizationUserId

func OrganizationUserId(dp *depot.Depot, organizationId uint64, userId uint64) bool

func PlanName

func PlanName(dp *depot.Depot, v string) bool

func SiteUniqueDomain

func SiteUniqueDomain(dp *depot.Depot, v string, siteId *uint64) bool

func SiteUrl

func SiteUrl(dp *depot.Depot, v string) bool

func Url

func Url(v string) bool

func UserAccessToken

func UserAccessToken(dp *depot.Depot, v string) bool

func UserActivationToken

func UserActivationToken(dp *depot.Depot, v string) bool

func UserActive

func UserActive(dp *depot.Depot, id uint64) bool

func UserEmail

func UserEmail(dp *depot.Depot, v string) bool

func UserEmailVerificationToken

func UserEmailVerificationToken(dp *depot.Depot, v string) bool

func UserEmailVerified

func UserEmailVerified(dp *depot.Depot, id uint64) bool

func UserPasswordResetToken

func UserPasswordResetToken(dp *depot.Depot, v string) bool

func UserUniqueEmail

func UserUniqueEmail(dp *depot.Depot, v string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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