Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceContext ¶
type ServiceContext struct { *repository.AppRepository Config *config.Config //MainDB *gorm.DB //DBList map[string]*gorm.DB //Cache *redis.Client Log *glog.Glogger Token *jjwt.JwtToken RBAC *rbac.CachedEnforcer Captcha *captcha.CaptchaRepository EmailPublisher rabbitmq.MessagePublisher Uploader upload.Uploader }
注册需要用到的gorm、redis、model
func NewServiceContext ¶
func NewServiceContext(cfg *config.Config) *ServiceContext
Click to show internal directories.
Click to hide internal directories.