Documentation ¶
Index ¶
- func Object[T any](c *Container, name string) (T, error)
- type Component
- type Constructor
- type Container
- func (c *Container) Application() *application.Application
- func (c *Container) Build() error
- func (c *Container) Close() error
- func (c *Container) New(ctts []Constructor) (*Container, error)
- func (c *Container) SetObject(name string, value any) error
- func (c *Container) Start() error
- func (c *Container) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Constructor ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer(app *application.Application, ctts []Constructor) (*Container, error)
func (*Container) Application ¶
func (c *Container) Application() *application.Application
Click to show internal directories.
Click to hide internal directories.