Help us shape the future of Go! Take the 2026 Go Developer Survey

svc

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 27 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 {
	Config         config.Config
	AuthMiddleware rest.Middleware

	CaptchaService *captcha.Service

	Trans *last_i18n.Translator

	UserRpc          userservice.UserService
	TokenRpc         tokenservice.TokenService
	OauthRpc         oauthproviderservice.OauthProviderService
	InitRpc          initservice.InitService
	MenuRpc          menuservice.MenuService
	ApiRpc           apiservice.ApiService
	DepartmentRpc    departmentservice.DepartmentService
	RoleRpc          roleservice.RoleService
	DictRpc          dictservice.DictService
	PositionRpc      positionservice.PositionService
	ConfigurationRpc configurationservice.ConfigurationService

	Redis  *redis.Client
	Casbin *casbin.Enforcer
	// contains filtered or unexported fields
}

func NewServiceContext

func NewServiceContext(c config.Config) *ServiceContext

Jump to

Keyboard shortcuts

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