svc

package
v0.0.0-...-70261f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL