Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InputTypes = []string{
"nats",
"kafka",
"jetstream",
}
View Source
var Inputs = map[string]Initializer{}
Functions ¶
func Register ¶
func Register(name string, initFn Initializer)
func UpdateProcessorInSlice ¶ added in v0.43.0
func UpdateProcessorInSlice( logger *log.Logger, storeObj store.Store[any], eventProcessors []string, currentEvps []formatters.EventProcessor, processorName string, pcfg map[string]any, ) ([]formatters.EventProcessor, bool, error)
Types ¶
type BaseInput ¶ added in v0.43.0
type BaseInput struct {
}
func (*BaseInput) UpdateProcessor ¶ added in v0.43.0
type Initializer ¶
type Initializer func() Input
type Input ¶
type Input interface {
// Start initializes the input and starts it.
Start(context.Context, string, map[string]any, ...Option) error
// Validate validates the input configuration.
Validate(map[string]any) error
// Update updates the input configuration in place for
// a running input.
Update(map[string]any) error
// UpdateProcessor updates the named processor configuration
// for a running input.
// if the processor is not used by the Input, it will be ignored.
UpdateProcessor(string, map[string]any) error
// Close stops the input.
Close() error
}
type InputOptions ¶ added in v0.42.1
type Option ¶
type Option func(*InputOptions) error
func WithLogger ¶
func WithPipeline ¶ added in v0.43.0
type PipeMessage ¶ added in v0.43.0
Click to show internal directories.
Click to hide internal directories.