Documentation ¶
Overview ¶
TODO:
- threadsafety lol
- DEFERRED DEPS
Index ¶
- type Callback
- type Controller
- type DependencyNotFoundError
- type Handler
- type Lifecycle
- type Manager
- func (m *Manager) AddCallback(cb Callback)
- func (m *Manager) AddDependencies(obj any, deps []any) error
- func (m *Manager) AddObject(obj any, fn func(State) error, deps []any) error
- func (m *Manager) AddObjectCallback(obj any, cb Callback) error
- func (m *Manager) Construct() error
- func (m *Manager) Destroy() error
- func (m *Manager) Start() error
- func (m *Manager) State() State
- func (m *Manager) Stop() error
- type ObjectAlreadyRegisteredError
- type ObjectNotRegisteredError
- type State
- type StateError
- type StateMask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (Controller) AddCallback ¶
func (c Controller) AddCallback(cb Callback)
func (*Controller) Construct ¶
func (c *Controller) Construct() error
func (*Controller) Destroy ¶
func (c *Controller) Destroy() error
func (*Controller) Start ¶
func (c *Controller) Start() error
func (Controller) State ¶
func (c Controller) State() State
func (*Controller) Stop ¶
func (c *Controller) Stop() error
type DependencyNotFoundError ¶
type DependencyNotFoundError struct { Dependent, Dependency any }
func (DependencyNotFoundError) Error ¶
func (e DependencyNotFoundError) Error() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) AddCallback ¶
type ObjectAlreadyRegisteredError ¶
type ObjectAlreadyRegisteredError struct {
Obj any
}
func (ObjectAlreadyRegisteredError) Error ¶
func (e ObjectAlreadyRegisteredError) Error() string
type ObjectNotRegisteredError ¶
type ObjectNotRegisteredError struct {
Obj any
}
func (ObjectNotRegisteredError) Error ¶
func (e ObjectNotRegisteredError) Error() string
type StateError ¶
func (StateError) Error ¶
func (e StateError) Error() string
Click to show internal directories.
Click to hide internal directories.