Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComponentBuilder ¶ added in v1.9.11
ComponentBuilder is a function that creates a tool component.
type Factory ¶ added in v1.9.11
type Factory struct {
// contains filtered or unexported fields
}
Factory creates tool components using the registry. It looks up registered component builders and falls back to a default component if no specific builder is registered for a tool.
func NewFactory ¶ added in v1.9.11
type Registry ¶ added in v1.9.11
type Registry struct {
// contains filtered or unexported fields
}
Registry manages tool component builders.
func NewRegistry ¶ added in v1.9.11
func NewRegistry() *Registry
func (*Registry) Get ¶ added in v1.9.11
func (r *Registry) Get(toolName string) (ComponentBuilder, bool)
func (*Registry) Register ¶ added in v1.9.11
func (r *Registry) Register(toolName string, builder ComponentBuilder)
Click to show internal directories.
Click to hide internal directories.