Documentation
¶
Index ¶
Constants ¶
View Source
const ( ComponentName = "inject" ConfigPort = "config" MessagePort = "message" OutputPort = "output" ErrorPort = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component implements config injection with metadata persistence
func (*Component) GetInfo ¶
func (c *Component) GetInfo() module.ComponentInfo
type Config ¶
type Config struct {
Data Data `json:"data" configurable:"true" required:"true" title:"Data" description:"Configuration data to inject into messages"`
}
Config is stored in metadata and injected into messages
type ErrorOutput ¶ added in v0.1.210
type ErrorOutput struct {
Context Context `json:"context" configurable:"true" title:"Context"`
Error string `json:"error" title:"Error"`
}
ErrorOutput is sent when config is required but not set
type Message ¶
type Message struct {
Context Context `json:"context" configurable:"true" title:"Context" description:"Passthrough context for correlation"`
}
Message passes through with config injected
Click to show internal directories.
Click to hide internal directories.