Documentation ¶
Overview ¶
Package ioc 依赖反转
Index ¶
- func InitDB(l logger.LoggerV1) *gorm.DB
- func InitLogger() logger.LoggerV1
- func InitMiddlewares(redisClient redis.Cmdable, l logger2.LoggerV1, jwtHdl ijwt.Handler) []gin.HandlerFunc
- func InitRedis() redis.Cmdable
- func InitSMSService(cmd redis.Cmdable) sms.Service
- func InitWebServer(mdls []gin.HandlerFunc, userHdl *web.UserHandler, ...) *gin.Engine
- func InitWechatService(l logger2.LoggerV1) wechat.Service
- func NewWechatHandlerConfig() web.WechatHandlerConfig
- type Configer
- type DoSomething
- type DoSomethingFunc
- type ViperConfigerAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitMiddlewares ¶
func InitSMSService ¶
func InitWebServer ¶
func InitWebServer(mdls []gin.HandlerFunc, userHdl *web.UserHandler, oauth2WechatHdl *web.OAuth2WechatHandler, articleHdl *web.ArticleHandler) *gin.Engine
func NewWechatHandlerConfig ¶
func NewWechatHandlerConfig() web.WechatHandlerConfig
Types ¶
type DoSomething ¶
type DoSomething interface {
DoABC() string
}
type DoSomethingFunc ¶
type DoSomethingFunc func() string
func (DoSomethingFunc) DoABC ¶
func (d DoSomethingFunc) DoABC() string
type ViperConfigerAdapter ¶
type ViperConfigerAdapter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.