Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessMode ¶
type AccessMode string
AccessMode defines the required filesystem permissions needed to validate a path flag.
const ( // ModeRead ensures the application can open and read the file or directory. ModeRead AccessMode = "read" // ModeWrite ensures the application can modify or create the file or directory. ModeWrite AccessMode = "write" // ModeReadWrite ensures both read and write capabilities are available. ModeReadWrite AccessMode = "readwrite" )
type FlagType ¶
type FlagType string
FlagType defines the strict set of data formats supported by the router for automatic parsing, type conversion, and validation.
const ( TypeString FlagType = "string" TypeInt FlagType = "int" TypeInt64 FlagType = "int64" TypeFloat FlagType = "float" TypeBool FlagType = "bool" TypeJSON FlagType = "json" TypeDuration FlagType = "duration" TypeDate FlagType = "date" TypeTime FlagType = "time" TypeDateTime FlagType = "datetime" TypeEmail FlagType = "email" TypePath FlagType = "path" TypeFilename FlagType = "filename" TypeFilepath FlagType = "filepath" TypeDirname FlagType = "dirname" TypeDirpath FlagType = "dirpath" TypeURL FlagType = "url" TypeFullURL FlagType = "fullurl" TypeRelativeURL FlagType = "relativeurl" TypeStringArray FlagType = "[]string" TypeIntArray FlagType = "[]int" TypeInt64Array FlagType = "[]int64" TypeFloatArray FlagType = "[]float" TypeBoolArray FlagType = "[]bool" TypeDurationArray FlagType = "[]duration" TypeDateArray FlagType = "[]date" TypeTimeArray FlagType = "[]time" TypeDateTimeArray FlagType = "[]datetime" TypeEmailArray FlagType = "[]email" TypePathArray FlagType = "[]path" TypeFilenameArray FlagType = "[]filename" TypeFilepathArray FlagType = "[]filepath" TypeDirnameArray FlagType = "[]dirname" TypeDirpathArray FlagType = "[]dirpath" TypeURLArray FlagType = "[]url" TypeFullURLArray FlagType = "[]fullurl" TypeRelativeURLArray FlagType = "[]relativeurl" )
Click to show internal directories.
Click to hide internal directories.