Documentation ¶
Index ¶
- Constants
- type Container
- func (container *Container) GetMyContextualizedService(ctx context.Context) *MyContextualizeService
- func (container *Container) GetMyLittleService() func()
- func (container *Container) GetMyService() *my_service.MyService
- 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) 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()
func (*Container) GetMyService ¶
func (container *Container) GetMyService() *my_service.MyService
service can be live in they're own package
type MyContextualizeService ¶
type MyContextualizeService struct { }
func (*MyContextualizeService) Find ¶
func (m *MyContextualizeService) Find()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.