Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CleanupStack ¶
type CleanupStack struct {
// contains filtered or unexported fields
}
func (*CleanupStack) Add ¶
func (s *CleanupStack) Add(fn func() error)
func (*CleanupStack) Close ¶
func (s *CleanupStack) Close() error
type Runtime ¶
type Runtime struct {
Config *config.Config
Logger *slog.Logger
DB *gorm.DB
Database db.Database
// Deprecated: use Database. Kept for compatibility with older services.
SQL db.Database
Redis redis.UniversalClient
RedisRuntime *cache.Redis
S3 objectstore.Client
Casdoor *casdoor.Adapter
Authn authn.Authenticator
Authz authz.Authorizer
Audit audit.Recorder
Access *access.Guard
Session *session.Manager
Tx *db.TxManager
Permission permission.Manager
Metrics *metrics.Metrics
}
func NewRuntime ¶
func NewRuntimeFromConfig ¶
type RuntimeFactoryOptions ¶
type RuntimeFactoryOptions struct {
ConfigPaths []string
RuntimeOptions []RuntimeOption
}
type RuntimeOption ¶
type RuntimeOption func(*Runtime)
Click to show internal directories.
Click to hide internal directories.