Documentation ¶
Index ¶
- type Service
- func (t *Service) GetCache(key string) interfaces.ICache
- func (t *Service) GetClient(key string) interfaces.IClient
- func (t *Service) GetConfig() interfaces.IConfig
- func (t *Service) GetController(key string) interfaces.IController
- func (t *Service) GetDatabase(key string) interfaces.IDatabase
- func (t *Service) GetLogger() interfaces.ILogger
- func (t *Service) GetMiddleware(key string) interfaces.IMiddleware
- func (t *Service) GetModule(key string) interfaces.IModules
- func (t *Service) GetNoSql(key string) interfaces.INoSql
- func (t *Service) GetRepository(key string) interfaces.IRepository
- func (t *Service) GetServer(key string) interfaces.IServer
- func (t *Service) GetStorage(key string) interfaces.IStorage
- func (t *Service) Init() error
- func (t *Service) PushCache(c interfaces.ICache) interfaces.IService
- func (t *Service) PushClient(b interfaces.IClient) interfaces.IService
- func (t *Service) PushController(b interfaces.IController) interfaces.IService
- func (t *Service) PushDatabase(b interfaces.IDatabase) interfaces.IService
- func (t *Service) PushMiddleware(b interfaces.IMiddleware) interfaces.IService
- func (t *Service) PushModule(b interfaces.IModules) interfaces.IService
- func (t *Service) PushNoSql(b interfaces.INoSql) interfaces.IService
- func (t *Service) PushRepository(b interfaces.IRepository) interfaces.IService
- func (t *Service) PushServer(b interfaces.IServer) interfaces.IService
- func (t *Service) PushStorage(b interfaces.IStorage) interfaces.IService
- func (t *Service) SetMetrics(c interfaces.IMetrics)
- func (t *Service) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(name string, config interfaces.IConfig, logger interfaces.ILogger) *Service
func (*Service) GetClient ¶ added in v0.0.9
func (t *Service) GetClient(key string) interfaces.IClient
func (*Service) GetConfig ¶ added in v0.0.5
func (t *Service) GetConfig() interfaces.IConfig
func (*Service) GetController ¶
func (t *Service) GetController(key string) interfaces.IController
func (*Service) GetDatabase ¶
func (t *Service) GetDatabase(key string) interfaces.IDatabase
func (*Service) GetLogger ¶
func (t *Service) GetLogger() interfaces.ILogger
func (*Service) GetMiddleware ¶ added in v0.0.9
func (t *Service) GetMiddleware(key string) interfaces.IMiddleware
func (*Service) GetRepository ¶
func (t *Service) GetRepository(key string) interfaces.IRepository
func (*Service) GetStorage ¶
func (t *Service) GetStorage(key string) interfaces.IStorage
func (*Service) PushCache ¶
func (t *Service) PushCache(c interfaces.ICache) interfaces.IService
func (*Service) PushClient ¶ added in v0.0.9
func (t *Service) PushClient(b interfaces.IClient) interfaces.IService
func (*Service) PushController ¶
func (t *Service) PushController(b interfaces.IController) interfaces.IService
func (*Service) PushDatabase ¶
func (t *Service) PushDatabase(b interfaces.IDatabase) interfaces.IService
func (*Service) PushMiddleware ¶ added in v0.0.9
func (t *Service) PushMiddleware(b interfaces.IMiddleware) interfaces.IService
func (*Service) PushModule ¶
func (t *Service) PushModule(b interfaces.IModules) interfaces.IService
func (*Service) PushNoSql ¶ added in v0.0.5
func (t *Service) PushNoSql(b interfaces.INoSql) interfaces.IService
func (*Service) PushRepository ¶
func (t *Service) PushRepository(b interfaces.IRepository) interfaces.IService
func (*Service) PushServer ¶
func (t *Service) PushServer(b interfaces.IServer) interfaces.IService
func (*Service) PushStorage ¶
func (t *Service) PushStorage(b interfaces.IStorage) interfaces.IService
func (*Service) SetMetrics ¶ added in v0.0.9
func (t *Service) SetMetrics(c interfaces.IMetrics)
Directories ¶
Path | Synopsis |
---|---|
pkg
|
|
cache/memory
Module
|
|
cache/redis
Module
|
|
database/clickhouse
Module
|
|
database/mongodb
Module
|
|
database/postgres
Module
|
|
database/sqlite
Module
|
|
logger/file-log
Module
|
|
logger/sentry-log
Module
|
|
logger/std-log
Module
|
|
server/grpc
Module
|
|
server/http
Module
|
|
server/kafka
Module
|
|
utils
|
|
Click to show internal directories.
Click to hide internal directories.