Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrComponentNotRegistered = eris.New("component not registered")
Functions ¶
func NewComponentMetadata ¶
NewComponentMetadata creates a new component type. The function is used to create a new component of the type.
Types ¶
type ComponentManager ¶ added in v1.5.0
type ComponentManager interface { RegisterComponent(compMetadata types.ComponentMetadata) error GetComponents() []types.ComponentMetadata GetComponentByName(name string) (types.ComponentMetadata, error) }
func NewManager ¶
func NewManager(schemaStorage SchemaStorage) ComponentManager
NewManager creates a new component manager.
type Option ¶
Option is a type that can be passed to NewComponentMetadata to augment the creation of the component type.
func WithDefault ¶
WithDefault updated the created componentMetadata with a default value.
Click to show internal directories.
Click to hide internal directories.