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)
Click to show internal directories.
Click to hide internal directories.