// Instance is the framework's instance, used for server & plugin both.
type Instance struct {
- Conf *Configuration // configuration of this application.
- Db *sqlx.DB // the first database connection created by main routine.
- Logger *logger.Logger // logger created by main routine.
- Router *gin.Engine // default webservice engine created by main routine.
- Maintenance bool // when maintenance mode is true, only serve api /config.
- CheckToken *TokenCheckFunc // pointer of check token function.
+ Conf *Configuration // configuration of this application.
+ Db *sqlx.DB // the first database connection created by main routine.
+ Logger *logger.Logger // logger created by main routine.
+ Router *gin.Engine // default webservice engine created by main routine.
+ Maintenance bool // when maintenance mode is true, only serve api /config.
+ CheckToken TokenCheckFunc // function of check token.
}