Documentation ¶
Index ¶
- Variables
- func HTTPConfig(config *config.Config) (httpConfig.HTTPConfig, error)
- func NewCasbin(options *config.Options, adapter persist.Adapter) (*casbin.SyncedEnforcer, func(), error)
- func NewGorm(config *config.Config) (*gorm.DB, func(), error)
- func NewIDGenerator() id.Generator
- func OAuth2Config(config *config.Config) (oauth2Config.OAuth2, error)
- func SecurityConfig(config *config.Config) (config.Security, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = wire.NewSet( HTTPConfig, SecurityConfig, OAuth2Config, )
Config 需要单独注入的配置
Functions ¶
func HTTPConfig ¶
func HTTPConfig(config *config.Config) (httpConfig.HTTPConfig, error)
HTTPConfig 单独注入 http config
func NewCasbin ¶
func NewCasbin(options *config.Options, adapter persist.Adapter) (*casbin.SyncedEnforcer, func(), error)
NewCasbin Casbin
func OAuth2Config ¶
func OAuth2Config(config *config.Config) (oauth2Config.OAuth2, error)
OAuth2Config 单独注入 OAuth2 config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.