Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ByteSpace is the space character. ByteSpace = ' ' // ByteColon is the colon character. ByteColon = ':' // ByteSemicolon is the semicolon character. ByteSemicolon = ';' // ByteSlash is the slash character. ByteSlash = '/' // ByteAsterisk is the asterisk character. ByteAsterisk = '*' // ByteDot is the dot character. ByteDot = '.' // ByteComma is the comma character. ByteComma = ',' // ByteHyphen is the hyphen character. ByteHyphen = '-' // ByteUnderscore is the underscore character. ByteUnderscore = '_' // ByteAt is the at character. ByteAt = '@' // ByteHash is the hash character. ByteHash = '#' // ByteDollar is the dollar character. ByteDollar = '$' // BytePercent is the percent character. BytePercent = '%' // BytePlus is the plus character. BytePlus = '+' // ByteMinus is the minus character. ByteMinus = '-' // ByteEquals is the equals character. ByteEquals = '=' // ByteAmpersand is the ampersand character. ByteAmpersand = '&' // BytePipe is the pipe character. BytePipe = '|' // ByteTilde is the tilde character. ByteTilde = '~' // ByteBacktick is the backtick character. ByteBacktick = '`' // ByteQuestionMark is the question mark character. ByteQuestionMark = '?' // ByteExclamationMark is the exclamation mark character. ByteExclamationMark = '!' // ByteLeftParenthesis is the left parenthesis character. ByteLeftParenthesis = '(' // ByteRightParenthesis is the right parenthesis character. ByteRightParenthesis = ')' // ByteLeftBracket is the left bracket character. ByteLeftBracket = '[' // ByteRightBracket is the right bracket character. ByteRightBracket = ']' // ByteLeftBrace is the left brace character. ByteLeftBrace = '{' // ByteRightBrace is the right brace character. ByteRightBrace = '}' // ByteDoubleQuote is the double quote character. ByteDoubleQuote = '"' // ByteSingleQuote is the single quote character. ByteSingleQuote = '\'' // ByteBackslash is the backslash character. ByteBackslash = '\\' // ByteCarriageReturn is the carriage return character. ByteCarriageReturn = '\r' // ByteNewline is the newline character. ByteNewline = '\n' // ByteTab is the tab character. ByteTab = '\t' )
View Source
const ( DbOracle = "oracle" DbSQLServer = "sqlserver" DbPostgres = "postgres" DbMySQL = "mysql" DbSQLite = "sqlite" )
View Source
const ( EnvKeyPrefix = "VEF" EnvNodeId = EnvKeyPrefix + "_NODE_ID" EnvLogLevel = EnvKeyPrefix + "_LOG_LEVEL" EnvConfigPath = EnvKeyPrefix + "_CONFIG_PATH" EnvI18NLanguage = EnvKeyPrefix + "_I18N_LANGUAGE" )
View Source
const ( // HeaderXAppId is the header key for the app id. HeaderXAppId = "X-App-Id" // HeaderXTimestamp is the header key for the timestamp. HeaderXTimestamp = "X-Timestamp" // HeaderXSignature is the header key for the signature. HeaderXSignature = "X-Signature" // HeaderXRequestId is the header key for the request id. HeaderXRequestId = "X-Request-Id" )
View Source
const ( // JsonNull is the string representation of the null value in JSON. JsonNull = "null" // JsonQuote is the quote character used in JSON strings. JsonQuote byte = '"' )
View Source
const ( PlaceholderKeyOperator = "Operator" // PlaceholderKeyOperator is the placeholder for the operator in the db OperatorSystem = "system" // OperatorSystem is the operator for the system OperatorCronJob = "cron_job" // OperatorCronJob is the operator for the cron job OperatorAnonymous = "anonymous" // OperatorAnonymous is the operator for the anonymous ExprOperator = "?Operator" // ExprOperator is the operator placeholder ExprTableColumns = "?TableColumns" // ExprTableColumns is the table columns placeholder ExprColumns = "?Columns" // ExprColumns is the columns' placeholder ExprTablePks = "?TablePKs" // ExprTablePks is the table primary keys' placeholder ExprPks = "?PKs" // ExprPks is the primary keys placeholder ExprTableName = "?TableName" // ExprTableName is the table name placeholder ExprTableAlias = "?TableAlias" // ExprTableAlias is the table alias placeholder ColumnId = "id" // ColumnId is the column name for the id ColumnCreatedAt = "created_at" // ColumnCreatedAt is the column name for the created at ColumnUpdatedAt = "updated_at" // ColumnUpdatedAt is the column name for the updated at ColumnCreatedBy = "created_by" // ColumnCreatedBy is the column name for the created by ColumnUpdatedBy = "updated_by" // ColumnUpdatedBy is the column name for the updated by ColumnCreatedByName = "created_by_name" // ColumnCreatedByName is the column name for the created by name ColumnUpdatedByName = "updated_by_name" // ColumnUpdatedByName is the column name for the updated by name FieldId = "Id" // FieldId is the field name for the id FieldCreatedAt = "CreatedAt" // FieldCreatedAt is the field name for the created at FieldUpdatedAt = "UpdatedAt" // FieldUpdatedAt is the field name for the updated at FieldCreatedBy = "CreatedBy" // FieldCreatedBy is the field name for the created by FieldUpdatedBy = "UpdatedBy" // FieldUpdatedBy is the field name for the updated by FieldCreatedByName = "CreatedByName" // FieldCreatedByName is the field name for the created by name FieldUpdatedByName = "UpdatedByName" // FieldUpdatedByName is the field name for the updated by name )
View Source
const ( AuthSchemeBearer = "Bearer" QueryKeyAccessToken = "__accessToken" // System internal principals that are not allowed to login. PrincipalSystem = OperatorSystem // PrincipalSystem is the system principal PrincipalCronJob = OperatorCronJob // PrincipalCronJob is the cron job principal PrincipalAnonymous = OperatorAnonymous // PrincipalAnonymous is the anonymous principal )
View Source
const ( // Empty is the empty string. Empty = "" // Colon is the colon character. Colon = ":" // ColonSpace is the colon and space character. ColonSpace = ": " // Semicolon is the semicolon character. Semicolon = ";" // Slash is the slash character. Slash = "/" // DoubleSlash is the double slash character. DoubleSlash = "//" // Asterisk is the asterisk character. Asterisk = "*" // Dot is the dot character. Dot = "." // Comma is the comma character. Comma = "," // CommaSpace is the comma and space character. CommaSpace = ", " // Space is the space character. Space = " " // Hyphen is the hyphen character. Hyphen = "-" // Underscore is the underscore character. Underscore = "_" // At is the at character. At = "@" // Hash is the hash character. Hash = "#" // Dollar is the dollar character. Dollar = "$" // Percent is the percent character. Percent = "%" // Plus is the plus character. Plus = "+" // Minus is the minus character. Minus = "-" // Equals is the equals character. Equals = "=" // Ampersand is the ampersand character. Ampersand = "&" // Pipe is the pipe character. Pipe = "|" // Tilde is the tilde character. Tilde = "~" // Backtick is the backtick character. Backtick = "`" // QuestionMark is the question mark character. QuestionMark = "?" // ExclamationMark is the exclamation mark character. ExclamationMark = "!" // LeftParenthesis is the left parenthesis character. LeftParenthesis = "(" // RightParenthesis is the right parenthesis character. RightParenthesis = ")" // LeftBracket is the left bracket character. LeftBracket = "[" // RightBracket is the right bracket character. RightBracket = "]" // LeftBrace is the left brace character. LeftBrace = "{" // RightBrace is the right brace character. RightBrace = "}" // DoubleQuote is the double quote character. DoubleQuote = "\"" // SingleQuote is the single quote character. SingleQuote = "'" // Backslash is the backslash character. Backslash = "\\" // CarriageReturn is the carriage return character. CarriageReturn = "\r" // Newline is the newline character. Newline = "\n" // CarriageReturnNewline is the carriage return and newline character. CarriageReturnNewline = "\r\n" // Tab is the tab character. Tab = "\t" )
View Source
const ( TypeInt = "int" TypeString = "str" TypeBool = "bool" TypeDecimal = "dec" TypeDate = "date" TypeDateTime = "datetime" TypeTime = "time" )
View Source
const (
DefaultI18NLanguage = "zh-CN" // DefaultI18NLanguage is the default language for the i18n system
)
View Source
const ( // VEFVersion represents the current version of the VEF Framework. // This version number follows semantic versioning (semver) format. VEFVersion = "v0.15.2" )
Variables ¶
View Source
var JsonNullBytes = []byte(JsonNull)
JsonNullBytes is the byte representation of JSON null.
Functions ¶
This section is empty.
Types ¶
type StorageProvider ¶ added in v0.10.1
type StorageProvider string
const ( StorageMinIO StorageProvider = "minio" StorageMemory StorageProvider = "memory" StorageFilesystem StorageProvider = "filesystem" )
Click to show internal directories.
Click to hide internal directories.