Documentation
¶
Index ¶
Constants ¶
View Source
const ( Fw = "golang-mvc framework" FwVersion = "v1.0.0" FwTimeLocation = "Asia/Shanghai" FwSeparate = "__::__" )
View Source
const ( Md5 = "md5" Sha1 = "sha1" Sha256 = "sha256" Rsa = "rsa" Aes = "aes" Hmac = "hmac" Common = "common" Encrypt = "encrypt" Decrypt = "decrypt" )
View Source
const ( SelectOne = "ONE" SelectAll = "ALL" ByAsc = "ASC" ByEsc = "DESC" JoinLeft = "LEFT" JoinInner = "INNER" JoinRight = "RIGHT" )
View Source
const ( ErrPrefix = "fw_mvc_error_message_w" ErrKeyPrefix = "fw_" SuccessOK = "SuccessOK" Incorrect = "Incorrect" // Start.go -> M31001 ~ M31999 : property KeyM31001 = "modules_property_property_load_01" KeyM31002 = "modules_property_property_load_02" KeyM31003 = "modules_property_property_load_03" KeyM31004 = "fw_start_run_01" KeyM31005 = "fw_start_run_02" KeyM31006 = "fw_start_mvc_01" KeyM31007 = "fw_route_r_engine_01" KeyM31008 = "fw_route_r_engine_02" KeyM31009 = "fw_route_r_generate_03" // Error Message for Component -> M32001 ~ M32999 KeyM32001 = "components_caches_redis_singleton_check_01" KeyM32002 = "components_db_singleton_select_01" KeyM32003 = "components_db_singleton_select_02" KeyM32004 = "components_db_singleton_select_03" KeyM32005 = "components_jwt_jwt_check_01" KeyM32006 = "components_jwt_jwt_check_02" // Error Message for Modules -> M33001 ~ M33999 KeyM33001 = "modules_crypto_common_engine_01" KeyM33002 = "modules_crypto_common_engine_02" KeyM33003 = "modules_crypto_crypto_engine_01" KeyM33004 = "modules_caches_redis_singleton_initialized_01" KeyM33005 = "modules_caches_redis_r_01" KeyM33006 = "modules_db_singleton_initialized_01" KeyM33007 = "modules_db_Engine_01" KeyM33008 = "modules_crypto_aes_engine_01" KeyM33009 = "modules_crypto_hmac_engine_01" KeyM33010 = "modules_crypto_hmac_engine_02" KeyM33011 = "modules_crypto_hmac_engine_03" KeyM33012 = "modules_jwt_jwt_generateCT_01" KeyM33013 = "modules_jwt_jwt_analysisCT_01" KeyM33014 = "modules_jwt_jwt_decodeToHP_01" KeyM33015 = "modules_jwt_jwt_decodeToHP_02" KeyM33016 = "modules_jwt_jwt_analysisCT_02" KeyM33017 = "modules_jwt_jwt_chkSignature_01" KeyM33018 = "modules_jwt_jwt_verify_01" KeyM33019 = "modules_jwt_jwt_refresh_01" )
*
- Start.go: 31001~
- Components: 32001~
- Modules: 33001~
*
View Source
const ( JHeadersTyp = "JWT Token" JPayloadAud = "JWT Payload Aud Normal" )
View Source
const ( // Property File Suffix EnvDEV = "dev" EnvSTG = "stg" EnvPRD = "prd" PropertySuffix = "yaml" PropertyPort = "8577" PropertyTimeLocation = "Asia/Shanghai" PropertyHsslPower int = 0 )
View Source
const ( StatusOK = http.StatusOK StatusUnknown = -1 StatusNotFound = http.StatusNotFound StatusNoContent = http.StatusNoContent )
View Source
const ( // include lower case & Arabic numbers PatternType01 = "01" // include upper case & lower case & Arabic numbers & symbol character PatternType02 = "02" // include lower case & Arabic numbers & symbol character PatternType03 = "03" PatternRule01 = `` )
View Source
const ( HashServiceIds = "hash_service_ids" HashIds = "hash_ids" SnowFlake = "snowflake" )
View Source
const (
FwFormatDateTime = "2006/01/02 - 15:04:05" // time of golang born
)
Variables ¶
View Source
var ( CurrentLanguage = "" EN = language.English.String() CN = language.Chinese.String() CA = language.CanadianFrench.String() FR = language.French.String() Tm = &E{} )
View Source
var (
JTokenField = "TOKEN"
)
View Source
var ( /** * Modules: Property * - dev * - stg * - prd */ PropertyEnv = []interface{}{ EnvDEV, EnvSTG, EnvPRD, } )
Functions ¶
Types ¶
type Conditions ¶
Click to show internal directories.
Click to hide internal directories.