Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container interface {
Get(key string) any
Set(key string, service any, ss func(service any))
Keys() []string
}
Container container service.
type DefaultContainer ¶
type DefaultContainer struct {
// contains filtered or unexported fields
}
DefaultContainer is a service container structure.
func (*DefaultContainer) Get ¶
func (c *DefaultContainer) Get(key string) any
Get method to get the service.
func (*DefaultContainer) Keys ¶
func (c *DefaultContainer) Keys() []string
Keys list all service keys.
type Option ¶
type Option func(p *DefaultContainer)
Option to be used to build with optional deps.
func WithShutdownTimeout ¶
WithShutdownTimeout configuration option.
type ServiceRecord ¶
ServiceRecord service record structure.
Click to show internal directories.
Click to hide internal directories.