Documentation
¶
Index ¶
- type ApplicationContainer
- func (c *ApplicationContainer) Invoke(name string) (interface{}, error)
- func (c *ApplicationContainer) InvokeByType(obj interface{}) (interface{}, error)
- func (c *ApplicationContainer) InvokeByTypeP(obj interface{}) interface{}
- func (c *ApplicationContainer) InvokeP(name string) interface{}
- func (c *ApplicationContainer) Logger() *slog.Logger
- func (c *ApplicationContainer) Register(name string, obj interface{}) error
- func (c *ApplicationContainer) Run()
- func (c *ApplicationContainer) WithNamedProvider(name string, provider IProvider) *ApplicationContainer
- func (c *ApplicationContainer) WithProvider(provider IProvider) *ApplicationContainer
- type BaseProvider
- type ContainerLogsOpts
- type ContainerOpts
- type IApp
- type IContainer
- type IContainerMonitor
- type IProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationContainer ¶
type ApplicationContainer struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer(opts ContainerOpts) *ApplicationContainer
func (*ApplicationContainer) Invoke ¶
func (c *ApplicationContainer) Invoke(name string) (interface{}, error)
func (*ApplicationContainer) InvokeByType ¶
func (c *ApplicationContainer) InvokeByType(obj interface{}) (interface{}, error)
func (*ApplicationContainer) InvokeByTypeP ¶
func (c *ApplicationContainer) InvokeByTypeP(obj interface{}) interface{}
func (*ApplicationContainer) InvokeP ¶
func (c *ApplicationContainer) InvokeP(name string) interface{}
func (*ApplicationContainer) Logger ¶
func (c *ApplicationContainer) Logger() *slog.Logger
func (*ApplicationContainer) Register ¶
func (c *ApplicationContainer) Register(name string, obj interface{}) error
func (*ApplicationContainer) Run ¶
func (c *ApplicationContainer) Run()
func (*ApplicationContainer) WithNamedProvider ¶
func (c *ApplicationContainer) WithNamedProvider(name string, provider IProvider) *ApplicationContainer
func (*ApplicationContainer) WithProvider ¶
func (c *ApplicationContainer) WithProvider(provider IProvider) *ApplicationContainer
type BaseProvider ¶
type BaseProvider struct{}
func (*BaseProvider) OnRegister ¶
func (p *BaseProvider) OnRegister() func() error
func (*BaseProvider) OnStart ¶
func (p *BaseProvider) OnStart() func() error
func (*BaseProvider) OnStop ¶
func (p *BaseProvider) OnStop() func() error
type ContainerOpts ¶
type ContainerOpts struct {
Log ContainerLogsOpts
}
type IApp ¶
type IApp interface { IContainer Run() // contains filtered or unexported methods }
type IContainer ¶
type IContainerMonitor ¶
Click to show internal directories.
Click to hide internal directories.