sai

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Actions

func Actions() types.ActionBroker

func ClientManager

func ClientManager() types.ClientManager

func Config

func Config() types.ConfigManager

func Cron

func Cron() types.CronManager

func Database added in v1.1.2

func Database() types.DatabaseManager

func Get added in v1.1.1

func Get(name string) (any, bool)

func Has added in v1.1.1

func Has(name string) bool

func Load added in v1.1.1

func Load(name string, target any) bool

func Logger

func Logger() types.LoggerManager

func RegisterActionBroker

func RegisterActionBroker(actionBrokerName string, creator types.ActionBrokerCreator)

func RegisterAuthProvider added in v1.1.2

func RegisterAuthProvider(name string, provider types.AuthProvider) error

func RegisterCacheManager

func RegisterCacheManager(cacheManagerName string, creator types.CacheManagerCreator)

func RegisterDatabaseManager added in v1.1.2

func RegisterDatabaseManager(databaseType string, creator types.DatabaseManagerCreator)

func RegisterLogger

func RegisterLogger(loggerName string, creator types.LoggerCreator)

func RegisterMetricsManager

func RegisterMetricsManager(metricsManagerName string, creator types.MetricsManagerCreator)

func RegisterMiddleware added in v1.1.2

func RegisterMiddleware(middleware types.Middleware) error

func Router

func Router() types.HTTPRouter

func Set added in v1.1.1

func Set(name string, value any)

func SetContainer

func SetContainer(container *Container)

Types

type Container

func InitContainer

func InitContainer() *Container

func (*Container) Get added in v1.1.1

func (c *Container) Get(name string) (any, bool)

func (*Container) Has added in v1.1.1

func (c *Container) Has(name string) bool

func (*Container) Load added in v1.1.1

func (c *Container) Load(name string, target any) bool

func (*Container) Set added in v1.1.1

func (c *Container) Set(name string, value any)

func (*Container) SetActions

func (c *Container) SetActions(actions types.ActionBroker)

func (*Container) SetAuthProvider

func (c *Container) SetAuthProvider(authProvider types.AuthProviderManager)

func (*Container) SetCache

func (c *Container) SetCache(cache types.CacheManager)

func (*Container) SetClientManager

func (c *Container) SetClientManager(client types.ClientManager)

func (*Container) SetConfig

func (c *Container) SetConfig(config types.ConfigManager)

func (*Container) SetCron

func (c *Container) SetCron(cron types.CronManager)

func (*Container) SetDatabase added in v1.1.2

func (c *Container) SetDatabase(database types.DatabaseManager)

func (*Container) SetDocumentation

func (c *Container) SetDocumentation(doc types.DocumentationManager)

func (*Container) SetHTTPServer

func (c *Container) SetHTTPServer(server types.HTTPServer)

func (*Container) SetHealth

func (c *Container) SetHealth(health types.HealthManager)

func (*Container) SetLogger

func (c *Container) SetLogger(logger types.LoggerManager)

func (*Container) SetMetrics

func (c *Container) SetMetrics(metrics types.MetricsManager)

func (*Container) SetMiddlewares

func (c *Container) SetMiddlewares(middlewares types.MiddlewareManager)

func (*Container) SetRouter

func (c *Container) SetRouter(router types.HTTPRouter)

func (*Container) SetTLSManager

func (c *Container) SetTLSManager(tlsManager types.TLSManager)

Jump to

Keyboard shortcuts

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