Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArticleProvider = wire.NewSet( InteractiveProvider, article.NewArticleDao, cache.NewRedisArticleCache, wire.Bind(new(cache.ArticleCache), new(*cache.RedisArticleCache)), repository.NewArticleRepository, service.NewArticleService, handler.NewArticleHandler, )
View Source
var BaseProvider = wire.NewSet(bootstrap.NewViper, bootstrap.NewConfig, bootstrap.NewMysql, bootstrap.NewMongo, bootstrap.NewRedis, bootstrap.NewZap, bootstrap.NewMiddlewares, bootstrap.NewServer, core.NewApplication)
View Source
var InteractiveProvider = wire.NewSet(cache.NewRedisInteractiveCache, wire.Bind(new(cache.InteractiveCache), new(*cache.RedisInteractiveCache)), dao.NewInteractiveDaoMysql, wire.Bind(new(dao.InteractiveDao), new(*dao.InteractiveDaoMysql)), repository.NewInteractiveRepositoryImpl, wire.Bind(new(repository.InteractiveRepository), new(*repository.InteractiveRepositoryImpl)), service.NewInteractiveServiceImpl, wire.Bind(new(service.InteractiveService), new(*service.InteractiveServiceImpl)))
Functions ¶
func InitApp ¶
func InitApp() (core.Application, error)
func InitArticleHandler ¶
func InitArticleHandler() (*handler.ArticleHandler, error)
func InitConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.