Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constructable ¶
type Constructable interface {
Constructor()
}
Constructable is a service that has special method that initializes it
type Container ¶
type Container interface { // Set defines new entry in container Set(Option, ...Option) // Build sets new entry in container without adding it to container Build(Option, ...Option) any // Has checks whether the service of passed type exists Has(any) bool // Get returns service from container Get(any) any // GetByTag returns tagged services from container GetByTag(string) []any // All return all services All() []any }
Container handles services and fills them
type Destructible ¶
type Destructible interface {
Destructor()
}
Destructible is a service that has special method that destructs it
type Launchable ¶
type Option ¶
type Option = func(*entry)
func Constructor ¶ added in v2.1.0
func DefaultResolver ¶
func DefaultResolver() Option
type PrecompiledContainer ¶
type PrecompiledContainer interface { Compile() Destroy() Container }
PrecompiledContainer is an extension of Container that can fill services before usage
func NewContainer ¶
func NewContainer() PrecompiledContainer
type Runner ¶
type Runner interface { PrecompiledContainer Name() string Run(context.Context) }
func NewApplication ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.