Cleaned up documentation and removed stubs and TODOs throughout the application
This commit is contained in:
@@ -101,7 +101,7 @@ func (cfg SourceConfig) ExpectedKinds() []string {
|
||||
// SinkConfig describes one output sink adapter.
|
||||
type SinkConfig struct {
|
||||
Name string `yaml:"name"`
|
||||
Driver string `yaml:"driver"` // "stdout", "file", "postgres", "rabbitmq", ...
|
||||
Driver string `yaml:"driver"` // "stdout", "nats", "postgres", ...
|
||||
Params map[string]any `yaml:"params"` // sink-specific settings
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ func (c *Config) Validate() error {
|
||||
}
|
||||
|
||||
if strings.TrimSpace(s.Driver) == "" {
|
||||
m.Add(fieldErr(path+".driver", "is required (stdout|file|postgres|rabbitmq|...)"))
|
||||
m.Add(fieldErr(path+".driver", "is required (stdout|nats|postgres|...)"))
|
||||
}
|
||||
|
||||
// Params can be nil; that's fine.
|
||||
|
||||
Reference in New Issue
Block a user