Documentation
¶
Index ¶
- Variables
- type AccessTokenType
- type AccessTokenValue
- type Byte
- type CidrBlock
- type CityName
- type CompressionFormat
- type CountryCode
- type CurrencyCode
- type Fqdn
- type GenericNotes
- type Hash
- type HttpMethod
- type HttpStatusCode
- type IpAddress
- type MailAddress
- type MimeType
- type NetworkPort
- type NetworkProtocol
- type PaginationLastSeenId
- type PaginationSortBy
- type PaginationSortDirection
- type Password
- type PhoneNumber
- type RelativeTime
- type StreetAddress
- type UnixCommand
- type UnixFileExtension
- type UnixFileName
- type UnixFileOwnership
- type UnixFilePath
- func (vo UnixFilePath) ReadCompoundFileExtension() (UnixFileExtension, error)
- func (vo UnixFilePath) ReadFileDir() UnixFilePath
- func (vo UnixFilePath) ReadFileExtension() (UnixFileExtension, error)
- func (vo UnixFilePath) ReadFileName() UnixFileName
- func (vo UnixFilePath) ReadFileNameWithoutExtension() UnixFileName
- func (vo UnixFilePath) ReadWithoutExtension() UnixFilePath
- func (vo UnixFilePath) String() string
- type UnixGroupId
- type UnixGroupName
- type UnixHostname
- type UnixTime
- func (vo UnixTime) Int64() int64
- func (vo UnixTime) IsBetween(startDate, endDate UnixTime) bool
- func (vo UnixTime) IsFuture() bool
- func (vo UnixTime) IsPast() bool
- func (vo UnixTime) ReadAsGoTime() time.Time
- func (vo UnixTime) ReadDateOnly() string
- func (ut UnixTime) ReadDateTime() string
- func (ut UnixTime) ReadEndOfDay() time.Time
- func (vo UnixTime) ReadRfcDate() string
- func (ut UnixTime) ReadStartOfDay() time.Time
- func (vo UnixTime) ReadTimeOnly() string
- func (vo UnixTime) String() string
- type UnixUserId
- type UnixUsername
- type Url
- type UrlPath
- type ZipCode
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableCountryCodes = []CountryCode{}/* 181 elements not displayed */
View Source
var HumanlyUsedCharsRegex = regexp.MustCompile(`^[\p{L}\p{N}\p{Pd}\p{Pi}\p{Pf}\p{Pc}\p{Po}\p{Z}\p{Sc}\(\)\[\]\+\=]+$`)
View Source
var IpAddressLocal = IpAddress("127.0.0.1")
View Source
var ValidCompressionFormats = []string{
"tar", "tar.gz", "gzip", "zip", "xz", "br",
}
Functions ¶
This section is empty.
Types ¶
type AccessTokenType ¶ added in v0.0.8
type AccessTokenType string
var ( AccessTokenTypeSessionToken AccessTokenType = "sessionToken" AccessTokenTypeSecretKey AccessTokenType = "secretKey" )
func NewAccessTokenType ¶ added in v0.0.8
func NewAccessTokenType(value any) (tokenType AccessTokenType, err error)
func (AccessTokenType) String ¶ added in v0.0.8
func (vo AccessTokenType) String() string
type AccessTokenValue ¶ added in v0.0.8
type AccessTokenValue string
func NewAccessTokenValue ¶ added in v0.0.8
func NewAccessTokenValue(value any) (tokenValue AccessTokenValue, err error)
func (AccessTokenValue) String ¶ added in v0.0.8
func (vo AccessTokenValue) String() string
type Byte ¶ added in v0.0.8
type Byte uint64
func NewGibibyte ¶ added in v0.0.8
func NewKibibyte ¶ added in v0.0.8
func NewMebibyte ¶ added in v0.0.8
func NewTebibyte ¶ added in v0.0.8
func (Byte) StringWithSuffix ¶ added in v0.0.8
type CompressionFormat ¶ added in v0.0.7
type CompressionFormat string
var ( CompressionFormatTarball CompressionFormat = "tar" CompressionFormatGzippedTarball CompressionFormat = "tar.gz" CompressionFormatGzip CompressionFormat = "gzip" CompressionFormatZip CompressionFormat = "zip" CompressionFormatXz CompressionFormat = "xz" CompressionFormatBrotli CompressionFormat = "br" )
func NewCompressionFormat ¶ added in v0.0.7
func NewCompressionFormat(value any) (CompressionFormat, error)
func (CompressionFormat) String ¶ added in v0.0.7
func (vo CompressionFormat) String() string
type CountryCode ¶ added in v0.0.8
type CountryCode string
func NewCountryCode ¶ added in v0.0.8
func NewCountryCode(value any) (countryCode CountryCode, err error)
func (CountryCode) ReadCountryName ¶ added in v0.0.8
func (vo CountryCode) ReadCountryName() (string, error)
func (CountryCode) String ¶ added in v0.0.8
func (vo CountryCode) String() string
type CurrencyCode ¶ added in v0.0.8
type CurrencyCode string
var ( CurrencyCodeAED CurrencyCode = "AED" CurrencyCodeAUD CurrencyCode = "AUD" CurrencyCodeBRL CurrencyCode = "BRL" CurrencyCodeCAD CurrencyCode = "CAD" CurrencyCodeCHF CurrencyCode = "CHF" CurrencyCodeCLP CurrencyCode = "CLP" CurrencyCodeCNY CurrencyCode = "CNY" CurrencyCodeCOP CurrencyCode = "COP" CurrencyCodeCZK CurrencyCode = "CZK" CurrencyCodeDKK CurrencyCode = "DKK" CurrencyCodeEUR CurrencyCode = "EUR" CurrencyCodeGBP CurrencyCode = "GBP" CurrencyCodeHKD CurrencyCode = "HKD" CurrencyCodeHUF CurrencyCode = "HUF" CurrencyCodeIDR CurrencyCode = "IDR" CurrencyCodeILS CurrencyCode = "ILS" CurrencyCodeINR CurrencyCode = "INR" CurrencyCodeJPY CurrencyCode = "JPY" CurrencyCodeKRW CurrencyCode = "KRW" CurrencyCodeMXN CurrencyCode = "MXN" CurrencyCodeMYR CurrencyCode = "MYR" CurrencyCodeNOK CurrencyCode = "NOK" CurrencyCodeNZD CurrencyCode = "NZD" CurrencyCodePEN CurrencyCode = "PEN" CurrencyCodePHP CurrencyCode = "PHP" CurrencyCodePLN CurrencyCode = "PLN" CurrencyCodeRON CurrencyCode = "RON" CurrencyCodeRUB CurrencyCode = "RUB" CurrencyCodeSAR CurrencyCode = "SAR" CurrencyCodeSEK CurrencyCode = "SEK" CurrencyCodeSGD CurrencyCode = "SGD" CurrencyCodeTHB CurrencyCode = "THB" CurrencyCodeTRY CurrencyCode = "TRY" CurrencyCodeTWD CurrencyCode = "TWD" CurrencyCodeUSD CurrencyCode = "USD" CurrencyCodeXCD CurrencyCode = "XCD" CurrencyCodeZAR CurrencyCode = "ZAR" CurrencyCodeDefault CurrencyCode = CurrencyCodeUSD )
func NewCurrencyCode ¶ added in v0.0.8
func NewCurrencyCode(value any) (currencyCode CurrencyCode, err error)
func (CurrencyCode) ReadCurrencyName ¶ added in v0.0.8
func (vo CurrencyCode) ReadCurrencyName() (string, error)
func (CurrencyCode) String ¶ added in v0.0.8
func (vo CurrencyCode) String() string
type GenericNotes ¶ added in v0.0.8
type GenericNotes string
func NewGenericNotes ¶ added in v0.0.8
func NewGenericNotes(value any) (genericNotes GenericNotes, err error)
func (GenericNotes) String ¶ added in v0.0.8
func (vo GenericNotes) String() string
type HttpMethod ¶ added in v0.0.8
type HttpMethod string
var ( HttpMethodGet HttpMethod = "GET" HttpMethodHead HttpMethod = "HEAD" HttpMethodPost HttpMethod = "POST" HttpMethodPut HttpMethod = "PUT" HttpMethodDelete HttpMethod = "DELETE" HttpMethodConnect HttpMethod = "CONNECT" HttpMethodOptions HttpMethod = "OPTIONS" HttpMethodTrace HttpMethod = "TRACE" HttpMethodPatch HttpMethod = "PATCH" )
func NewHttpMethod ¶ added in v0.0.8
func NewHttpMethod(value any) (vo HttpMethod, err error)
func (HttpMethod) HasBodySupport ¶ added in v0.0.8
func (vo HttpMethod) HasBodySupport() bool
func (HttpMethod) String ¶ added in v0.0.8
func (vo HttpMethod) String() string
type HttpStatusCode ¶ added in v0.0.8
type HttpStatusCode uint16
var ( HttpStatusCodeContinue HttpStatusCode = 100 HttpStatusCodeSwitchingProtocols HttpStatusCode = 101 HttpStatusCodeProcessing HttpStatusCode = 102 HttpStatusCodeEarlyHints HttpStatusCode = 103 HttpStatusCodeOk HttpStatusCode = 200 HttpStatusCodeCreated HttpStatusCode = 201 HttpStatusCodeAccepted HttpStatusCode = 202 HttpStatusCodeNonAuthoritativeInfo HttpStatusCode = 203 HttpStatusCodeNoContent HttpStatusCode = 204 HttpStatusCodeResetContent HttpStatusCode = 205 HttpStatusCodePartialContent HttpStatusCode = 206 HttpStatusCodeMultiStatus HttpStatusCode = 207 HttpStatusCodeAlreadyReported HttpStatusCode = 208 HttpStatusCodeImUsed HttpStatusCode = 226 HttpStatusCodeMultipleChoices HttpStatusCode = 300 HttpStatusCodeMovedPermanently HttpStatusCode = 301 HttpStatusCodeFound HttpStatusCode = 302 HttpStatusCodeSeeOther HttpStatusCode = 303 HttpStatusCodeNotModified HttpStatusCode = 304 HttpStatusCodeTemporaryRedirect HttpStatusCode = 307 HttpStatusCodePermanentRedirect HttpStatusCode = 308 HttpStatusCodeBadRequest HttpStatusCode = 400 HttpStatusCodePaymentRequired HttpStatusCode = 402 HttpStatusCodeForbidden HttpStatusCode = 403 HttpStatusCodeNotFound HttpStatusCode = 404 HttpStatusCodeMethodNotAllowed HttpStatusCode = 405 HttpStatusCodeNotAcceptable HttpStatusCode = 406 HttpStatusCodeProxyAuthenticationRequired HttpStatusCode = 407 HttpStatusCodeRequestTimeout HttpStatusCode = 408 HttpStatusCodeConflict HttpStatusCode = 409 HttpStatusCodeGone HttpStatusCode = 410 HttpStatusCodeLengthRequired HttpStatusCode = 411 HttpStatusCodePreconditionFailed HttpStatusCode = 412 HttpStatusCodePayloadTooLarge HttpStatusCode = 413 HttpStatusCodeUriTooLong HttpStatusCode = 414 HttpStatusCodeUnsupportedMediaType HttpStatusCode = 415 HttpStatusCodeRangeNotSatisfiable HttpStatusCode = 416 HttpStatusCodeExpectationFailed HttpStatusCode = 417 HttpStatusCodeImATeapot HttpStatusCode = 418 HttpStatusCodeMisdirectedRequest HttpStatusCode = 421 HttpStatusCodeUnprocessableEntity HttpStatusCode = 422 HttpStatusCodeLocked HttpStatusCode = 423 HttpStatusCodeFailedDependency HttpStatusCode = 424 HttpStatusCodeTooEarly HttpStatusCode = 425 HttpStatusCodeUpgradeRequired HttpStatusCode = 426 HttpStatusCodePreconditionRequired HttpStatusCode = 428 HttpStatusCodeTooManyRequests HttpStatusCode = 429 HttpStatusCodeRequestHeaderFieldsTooLarge HttpStatusCode = 431 HttpStatusCodeInternalServerError HttpStatusCode = 500 HttpStatusCodeNotImplemented HttpStatusCode = 501 HttpStatusCodeBadGateway HttpStatusCode = 502 HttpStatusCodeGatewayTimeout HttpStatusCode = 504 HttpStatusCodeHttpVersionNotSupported HttpStatusCode = 505 HttpStatusCodeVariantAlsoNegotiates HttpStatusCode = 506 HttpStatusCodeInsufficientStorage HttpStatusCode = 507 HttpStatusCodeLoopDetected HttpStatusCode = 508 HttpStatusCodeNotExtended HttpStatusCode = 510 HttpStatusCodeNetworkAuthenticationRequired HttpStatusCode = 511 )
func NewHttpStatusCode ¶ added in v0.0.8
func NewHttpStatusCode(value any) (statusCode HttpStatusCode, err error)
func (HttpStatusCode) String ¶ added in v0.0.8
func (vo HttpStatusCode) String() string
func (HttpStatusCode) Uint16 ¶ added in v0.0.8
func (vo HttpStatusCode) Uint16() uint16
type MailAddress ¶
type MailAddress string
func NewMailAddress ¶
func NewMailAddress(value any) (mailAddress MailAddress, err error)
func (MailAddress) String ¶
func (vo MailAddress) String() string
type NetworkPort ¶ added in v0.0.8
type NetworkPort uint16
func NewNetworkPort ¶ added in v0.0.8
func NewNetworkPort(value interface{}) (networkPort NetworkPort, err error)
func (NetworkPort) String ¶ added in v0.0.8
func (vo NetworkPort) String() string
func (NetworkPort) Uint16 ¶ added in v0.0.8
func (vo NetworkPort) Uint16() uint16
type NetworkProtocol ¶ added in v0.0.8
type NetworkProtocol string
var ( NetworkProtocolHttp NetworkProtocol = "http" NetworkProtocolHttps NetworkProtocol = "https" NetworkProtocolWs NetworkProtocol = "ws" NetworkProtocolWss NetworkProtocol = "wss" NetworkProtocolGrpc NetworkProtocol = "grpc" NetworkProtocolGrpcs NetworkProtocol = "grpcs" NetworkProtocolTcp NetworkProtocol = "tcp" NetworkProtocolUdp NetworkProtocol = "udp" NetworkProtocolDefault NetworkProtocol = "http" )
func NewNetworkProtocol ¶ added in v0.0.8
func NewNetworkProtocol(value any) (networkProtocol NetworkProtocol, err error)
func (NetworkProtocol) String ¶ added in v0.0.8
func (vo NetworkProtocol) String() string
type PaginationLastSeenId ¶ added in v0.0.8
type PaginationLastSeenId string
func NewPaginationLastSeenId ¶ added in v0.0.8
func NewPaginationLastSeenId(value any) (lastSeenId PaginationLastSeenId, err error)
func (PaginationLastSeenId) String ¶ added in v0.0.8
func (vo PaginationLastSeenId) String() string
type PaginationSortBy ¶ added in v0.0.8
type PaginationSortBy string
func NewPaginationSortBy ¶ added in v0.0.8
func NewPaginationSortBy(value any) (sortBy PaginationSortBy, err error)
func (PaginationSortBy) String ¶ added in v0.0.8
func (vo PaginationSortBy) String() string
type PaginationSortDirection ¶ added in v0.0.8
type PaginationSortDirection string
var ( PaginationSortDirectionAsc PaginationSortDirection = "asc" PaginationSortDirectionDesc PaginationSortDirection = "desc" )
func NewPaginationSortDirection ¶ added in v0.0.8
func NewPaginationSortDirection(value any) ( sortDirection PaginationSortDirection, err error, )
func (PaginationSortDirection) String ¶ added in v0.0.8
func (vo PaginationSortDirection) String() string
type PhoneNumber ¶ added in v0.0.8
type PhoneNumber string
func NewPhoneNumber ¶ added in v0.0.8
func NewPhoneNumber(value any) (phoneNumber PhoneNumber, err error)
func (PhoneNumber) String ¶ added in v0.0.8
func (vo PhoneNumber) String() string
type RelativeTime ¶ added in v0.0.8
type RelativeTime string
func NewRelativeTime ¶ added in v0.0.8
func NewRelativeTime(value any) (relativeTime RelativeTime, err error)
func (RelativeTime) String ¶ added in v0.0.8
func (vo RelativeTime) String() string
type StreetAddress ¶ added in v0.0.8
type StreetAddress string
func NewStreetAddress ¶ added in v0.0.8
func NewStreetAddress(value any) (streetAddress StreetAddress, err error)
func (StreetAddress) String ¶ added in v0.0.8
func (vo StreetAddress) String() string
type UnixCommand ¶ added in v0.0.8
type UnixCommand string
func NewUnixCommand ¶ added in v0.0.8
func NewUnixCommand(value any) (unixCommand UnixCommand, err error)
func (UnixCommand) String ¶ added in v0.0.8
func (vo UnixCommand) String() string
type UnixFileExtension ¶ added in v0.0.8
type UnixFileExtension string
func NewUnixFileExtension ¶ added in v0.0.8
func NewUnixFileExtension(value any) ( unixFileExtension UnixFileExtension, err error, )
func (UnixFileExtension) ReadMimeType ¶ added in v0.0.8
func (vo UnixFileExtension) ReadMimeType() MimeType
func (UnixFileExtension) String ¶ added in v0.0.8
func (vo UnixFileExtension) String() string
type UnixFileName ¶ added in v0.0.8
type UnixFileName string
func NewUnixFileName ¶ added in v0.0.8
func NewUnixFileName(value any) (fileName UnixFileName, err error)
func (UnixFileName) String ¶ added in v0.0.8
func (vo UnixFileName) String() string
type UnixFileOwnership ¶ added in v0.0.8
type UnixFileOwnership string
var ( UnixFileOwnershipNobodyNogroup UnixFileOwnership = "nobody:nogroup" UnixFileOwnershipRootRoot UnixFileOwnership = "root:root" )
func NewUnixFileOwnership ¶ added in v0.0.8
func NewUnixFileOwnership(value any) (fileOwnership UnixFileOwnership, err error)
func (UnixFileOwnership) ReadGroupName ¶ added in v0.0.8
func (vo UnixFileOwnership) ReadGroupName() (UnixGroupName, error)
func (UnixFileOwnership) ReadUsername ¶ added in v0.0.8
func (vo UnixFileOwnership) ReadUsername() (UnixUsername, error)
func (UnixFileOwnership) String ¶ added in v0.0.8
func (vo UnixFileOwnership) String() string
type UnixFilePath ¶ added in v0.0.8
type UnixFilePath string
func NewUnixFilePath ¶ added in v0.0.8
func NewUnixFilePath(value any) (filePath UnixFilePath, err error)
func (UnixFilePath) ReadCompoundFileExtension ¶ added in v0.0.8
func (vo UnixFilePath) ReadCompoundFileExtension() (UnixFileExtension, error)
func (UnixFilePath) ReadFileDir ¶ added in v0.0.8
func (vo UnixFilePath) ReadFileDir() UnixFilePath
func (UnixFilePath) ReadFileExtension ¶ added in v0.0.8
func (vo UnixFilePath) ReadFileExtension() (UnixFileExtension, error)
func (UnixFilePath) ReadFileName ¶ added in v0.0.8
func (vo UnixFilePath) ReadFileName() UnixFileName
func (UnixFilePath) ReadFileNameWithoutExtension ¶ added in v0.0.8
func (vo UnixFilePath) ReadFileNameWithoutExtension() UnixFileName
func (UnixFilePath) ReadWithoutExtension ¶ added in v0.0.8
func (vo UnixFilePath) ReadWithoutExtension() UnixFilePath
func (UnixFilePath) String ¶ added in v0.0.8
func (vo UnixFilePath) String() string
type UnixGroupId ¶ added in v0.0.8
type UnixGroupId uint64
func NewUnixGroupId ¶ added in v0.0.8
func NewUnixGroupId(value any) (UnixGroupId, error)
func (UnixGroupId) String ¶ added in v0.0.8
func (vo UnixGroupId) String() string
func (UnixGroupId) Uint64 ¶ added in v0.0.8
func (vo UnixGroupId) Uint64() uint64
type UnixGroupName ¶ added in v0.0.8
type UnixGroupName string
func NewUnixGroupName ¶ added in v0.0.8
func NewUnixGroupName(value any) (unixGroupName UnixGroupName, err error)
func (UnixGroupName) String ¶ added in v0.0.8
func (vo UnixGroupName) String() string
type UnixHostname ¶ added in v0.0.8
type UnixHostname string
func NewUnixHostname ¶ added in v0.0.8
func NewUnixHostname(value any) (hostname UnixHostname, err error)
func (UnixHostname) String ¶ added in v0.0.8
func (vo UnixHostname) String() string
type UnixTime ¶ added in v0.0.4
type UnixTime int64
func NewUnixTime ¶ added in v0.0.4
func NewUnixTimeAfterNow ¶ added in v0.0.4
func NewUnixTimeBeforeNow ¶ added in v0.0.4
func NewUnixTimeNow ¶ added in v0.0.4
func NewUnixTimeNow() UnixTime
func NewUnixTimeWithGoTime ¶ added in v0.0.4
func (UnixTime) ReadAsGoTime ¶ added in v0.0.4
func (UnixTime) ReadDateOnly ¶ added in v0.0.4
func (UnixTime) ReadDateTime ¶ added in v0.0.4
func (UnixTime) ReadEndOfDay ¶ added in v0.0.4
func (UnixTime) ReadRfcDate ¶ added in v0.0.4
func (UnixTime) ReadStartOfDay ¶ added in v0.0.4
func (UnixTime) ReadTimeOnly ¶ added in v0.0.4
type UnixUserId ¶ added in v0.0.8
type UnixUserId uint64
func NewUnixUserId ¶ added in v0.0.8
func NewUnixUserId(value any) (unixUserId UnixUserId, err error)
func (UnixUserId) String ¶ added in v0.0.8
func (vo UnixUserId) String() string
func (UnixUserId) Uint64 ¶ added in v0.0.8
func (vo UnixUserId) Uint64() uint64
type UnixUsername ¶ added in v0.0.8
type UnixUsername string
func NewUnixUsername ¶ added in v0.0.8
func NewUnixUsername(value any) (unixUsername UnixUsername, err error)
func (UnixUsername) String ¶ added in v0.0.8
func (vo UnixUsername) String() string
type UrlPath ¶ added in v0.0.8
type UrlPath string
func NewUrlPath ¶ added in v0.0.8
func (UrlPath) ReadWithoutQuery ¶ added in v0.0.8
func (UrlPath) ReadWithoutTrailingSlash ¶ added in v0.0.8
Source Files
¶
- accessTokenType.go
- accessTokenValue.go
- byte.go
- cidrBlock.go
- cityName.go
- compressionFormat.go
- countryCode.go
- currencyCode.go
- fqdn.go
- genericNotes.go
- hash.go
- httpMethod.go
- httpStatusCode.go
- ipAddress.go
- mailAddress.go
- mimeType.go
- networkPort.go
- networkProtocol.go
- paginationLastSeenId.go
- paginationSortBy.go
- paginationSortDirection.go
- password.go
- phoneNumber.go
- relativeTime.go
- streetAddress.go
- unixCommand.go
- unixFileExtension.go
- unixFileName.go
- unixFileOwnership.go
- unixFilePath.go
- unixGroupId.go
- unixGroupName.go
- unixHostname.go
- unixTime.go
- unixUserId.go
- unixUsername.go
- url.go
- urlPath.go
- zipCode.go
Click to show internal directories.
Click to hide internal directories.