Documentation
¶
Index ¶
- Variables
- func InitCheckUpdate(ctx context.Context) error
- func InitConfig(ctx context.Context) (err error)
- func InitDatabase(ctx context.Context) (err error)
- func InitDefaultConfig(ctx context.Context) error
- func InitDiscardLog(ctx context.Context) error
- func InitGinMode(ctx context.Context) error
- func InitLog(ctx context.Context) (err error)
- func InitOp(ctx context.Context) error
- func InitProvider(ctx context.Context) (err error)
- func InitRtmp(ctx context.Context) error
- func InitSetting(ctx context.Context) error
- func InitStdLog(ctx context.Context) error
- func InitSysNotify(ctx context.Context) error
- func InitVendor(ctx context.Context) error
- type Bootstrap
- type BootstrapConf
- type BootstrapFunc
- type ProviderGroupSetting
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Oauth2EnabledCache = refreshcache.NewRefreshCache[[]provider.OAuth2Provider](func() ([]provider.OAuth2Provider, error) { a := vec.New[provider.OAuth2Provider](vec.WithCmpEqual[provider.OAuth2Provider](func(v1, v2 provider.OAuth2Provider) bool { return v1 == v2 }), vec.WithCmpLess[provider.OAuth2Provider](func(v1, v2 provider.OAuth2Provider) bool { return v1 < v2 })) providers.EnabledProvider().Range(func(key provider.OAuth2Provider, value provider.ProviderInterface) bool { a.Push(key) return true }) return a.SortStable().Slice(), nil }, time.Hour) )
View Source
var ProviderGroupSettings = make(map[model.SettingGroup]*ProviderGroupSetting)
Functions ¶
func InitCheckUpdate ¶ added in v0.2.4
func InitConfig ¶
func InitDatabase ¶ added in v0.3.0
func InitDefaultConfig ¶ added in v0.2.4
func InitDiscardLog ¶ added in v0.3.0
func InitGinMode ¶ added in v0.2.4
func InitProvider ¶ added in v0.3.0
func InitSetting ¶ added in v0.3.0
func InitStdLog ¶ added in v0.2.4
func InitSysNotify ¶
func InitVendor ¶ added in v0.3.0
Types ¶
type Bootstrap ¶ added in v0.2.4
type Bootstrap struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.2.4
func New(conf ...BootstrapConf) *Bootstrap
func (*Bootstrap) Add ¶ added in v0.2.4
func (b *Bootstrap) Add(f ...BootstrapFunc) *Bootstrap
type BootstrapConf ¶ added in v0.2.4
type BootstrapConf func(*Bootstrap)
func WithContext ¶ added in v0.2.4
func WithContext(ctx context.Context) BootstrapConf
func WithTask ¶ added in v0.2.4
func WithTask(f ...BootstrapFunc) BootstrapConf
type BootstrapFunc ¶ added in v0.2.4
type ProviderGroupSetting ¶ added in v0.3.1
type ProviderGroupSetting struct {
Enabled settings.BoolSetting
ClientID settings.StringSetting
ClientSecret settings.StringSetting
RedirectURL settings.StringSetting
DisableUserSignup settings.BoolSetting
SignupNeedReview settings.BoolSetting
}
Click to show internal directories.
Click to hide internal directories.