svc

package
v0.0.0-...-253bb2f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient(c config.Config) redis.UniversalClient

Types

type ServiceContext

type ServiceContext struct {
	Config     config.Config
	DB         *gorm.DB
	JwtX       rest.Middleware
	HTTPClient *resty.Client
	Minio      *minio.Client
	Redis      redis.UniversalClient
	Nebula     *nebula_go.Session
	PrivateKey *rsa.PrivateKey
	Captcha    *base64Captcha.Captcha
	LLM        llm.Client
}

func NewServiceContext

func NewServiceContext(c config.Config) *ServiceContext

func (*ServiceContext) GetUserFromCache

func (svcCtx *ServiceContext) GetUserFromCache(token string) (user m.User, err error)

Jump to

Keyboard shortcuts

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