Documentation ¶
Index ¶
- Constants
- type Container
- func (container *Container) GetDocumentRepository() repository.DocumentRepository
- func (container *Container) GetEsClient() *elastic.Client
- func (container *Container) GetHttpRecorder() metrics.Recorder
- func (container *Container) GetIndexManager() *esRepo.IndexManager
- func (container *Container) GetMetricsRegistry() prometheus.Registerer
- func (container *Container) GetMyContextualizedService(ctx context.Context) *MyContextualizeService
- func (container *Container) GetMyLittleService() func()
- func (container *Container) Load() error
- func (container *Container) Unload() error
- type MyContextualizeService
Constants ¶
View Source
const Name = "basic_app"
View Source
const Version = "0.0.1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
Base Container must contain all service shared by all command you must add service getter in this package you can add here you service definition complex service can have they're own package
func NewContainer ¶
func (*Container) GetDocumentRepository ¶
func (container *Container) GetDocumentRepository() repository.DocumentRepository
func (*Container) GetEsClient ¶
func (*Container) GetHttpRecorder ¶
func (*Container) GetIndexManager ¶
func (container *Container) GetIndexManager() *esRepo.IndexManager
func (*Container) GetMetricsRegistry ¶
func (container *Container) GetMetricsRegistry() prometheus.Registerer
func (*Container) GetMyContextualizedService ¶
func (container *Container) GetMyContextualizedService(ctx context.Context) *MyContextualizeService
you need to define this kinf of service only when the service only live in context
func (*Container) GetMyLittleService ¶
func (container *Container) GetMyLittleService() func()
type MyContextualizeService ¶
type MyContextualizeService struct { }
func (*MyContextualizeService) Find ¶
func (m *MyContextualizeService) Find()
Click to show internal directories.
Click to hide internal directories.