Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Random data for fingerprint and verification code SECRET_KEY = "SECRET_KEY_GO_HERE" VERIFIER_KEY = "VERIFIER_SECRET_KEY_GO_HERE" // Auth verifier token expire time = 2 minutes AUTH_VERIFIER_EXPIRE_TIME = 2 * 60 // Session expire time = 15 minutes SESSION_EXPIRE_TIME = 15 * 60 // Session renew time = 3 minutes SESSION_RENEW_TIME = 3 * 60 )
Variables ¶
View Source
var BusinessData = make(map[string]*BusinessInfo)
Business data store
View Source
var DB *sql.DB
Global database connection
Functions ¶
This section is empty.
Types ¶
type BusinessInfo ¶
Business info store
type ConnInfo ¶
type ConnInfo struct { Domain string Request *http.Request RequestTime int64 Fingerprint string BusinessInfo *BusinessInfo UserInfo *UserInfo Response }
Connection info store
type ErrorMessage ¶
Click to show internal directories.
Click to hide internal directories.