func init() { deferinit.AddInit(func() { githubProvider = providers.NewGitHubProvider(&providers.ProviderData{ LoginUrl: &url.URL{}, RedeemUrl: &url.URL{}, ProfileUrl: &url.URL{}, ValidateUrl: &url.URL{}, ClientID: config.GetStringDefault("clientId", "66a252c0d27dc279b7cb"), ClientSecret: config.GetStringDefault("clientSecret", "a313e648feff0e6b30794142ff9304e42cd50da1"), }) _sid = config.GetStringDefault("cookieName", "sid") _cookieSecure = config.GetBooleanDefault("cookieSecure", false) _cookieSeed = config.GetStringDefault("cookieSeed", "cookieseed") _expireSecond = config.GetIntDefault("cookieExpire", 86400*30) _cookieExpire = time.Duration(_expireSecond) * time.Second }, nil, 0) }
func init() { deferinit.AddInit(connectDatabases, nil, 1000) }
func init() { deferinit.AddInit(func() { createRedisPool("") }, nil, 100) }