Documentation
¶
Index ¶
- type Service
- func (t *Service) GetBroker(key string) interfaces.IBroker
- func (t *Service) GetCache(key string) interfaces.ICache
- 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) GetModule(key string) interfaces.IModules
- 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) PushBroker(b interfaces.IBroker) interfaces.IService
- func (t *Service) PushCache(c interfaces.ICache) interfaces.IService
- func (t *Service) PushController(b interfaces.IController) interfaces.IService
- func (t *Service) PushDatabase(b interfaces.IDatabase) interfaces.IService
- func (t *Service) PushModule(b interfaces.IModules) 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) 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) 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) GetRepository ¶
func (t *Service) GetRepository(key string) interfaces.IRepository
func (*Service) GetStorage ¶
func (t *Service) GetStorage(key string) interfaces.IStorage
func (*Service) PushBroker ¶
func (t *Service) PushBroker(b interfaces.IBroker) interfaces.IService
func (*Service) PushCache ¶
func (t *Service) PushCache(c interfaces.ICache) 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) PushModule ¶
func (t *Service) PushModule(b interfaces.IModules) 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
Directories
¶
| Path | Synopsis |
|---|---|
|
pkg
|
|
|
cache/etcd
module
|
|
|
cache/memcached
module
|
|
|
cache/memory
module
|
|
|
cache/redis
module
|
|
|
client/grpc-client
module
|
|
|
client/grpc_client
module
|
|
|
client/http-client
module
|
|
|
client/http_client
module
|
|
|
client/kafka-client
module
|
|
|
client/kafka_client
module
|
|
|
client/rabbitmq-client
module
|
|
|
database/as
module
|
|
|
database/clickhouse
module
|
|
|
database/elasticsearch9
module
|
|
|
database/mongodb
module
|
|
|
database/mysql
module
|
|
|
database/postgres
module
|
|
|
database/sqlite
module
|
|
|
external/FeatureChaos
module
|
|
|
external/NetLocker
module
|
|
|
logger/file-log
module
|
|
|
logger/mock_log
module
|
|
|
logger/sentry-log
module
|
|
|
logger/sentry_log
module
|
|
|
logger/std-log
module
|
|
|
logger/std_log
module
|
|
|
server/grpc
module
|
|
|
server/http
module
|
|
|
server/kafka
module
|
|
|
server/rabbitmq
module
|
|
|
storage/file
module
|
|
|
storage/s3
module
|
|
Click to show internal directories.
Click to hide internal directories.