This directory contains example configuration files demonstrating different config formats and use cases.
Complete configuration example with all available options:
- Provider configuration with parameters
- Multiple processors in the pipeline
- Formatter configuration
- Output configuration
Use case: Reference for all configuration options
Minimal valid configuration:
- Basic provider, formatter, and output
- No processors
- Simplest working configuration
Use case: Quick start, testing, simple deployments
Same as config.yaml but in JSON format:
- Demonstrates JSON configuration support
- Identical functionality to YAML version
Use case: When JSON is preferred over YAML
// Load YAML config
config, err := config.LoadFromFile("examples/configs/config.yaml")
// Load JSON config
config, err := config.LoadFromFile("examples/configs/config.json")
// Load minimal config
config, err := config.LoadFromFile("examples/configs/config.minimal.yaml")# Set environment variables
export ENGINE_PROVIDER_TYPE=postgres
export ENGINE_PROVIDER_PARAM_HOST=localhost
export ENGINE_PROVIDER_PARAM_PORT=5432
# Load config with overrides
config, err := config.LoadFromFileWithEnv("examples/configs/config.yaml")Both YAML and JSON formats are supported. The loader automatically detects the format based on file extension:
.yaml,.yml→ YAML parser.json→ JSON parser
- Copy
config.minimal.yamlas a starting point - Add your provider configuration
- Add processors as needed
- Configure formatter options
- Set output destination
See the main README for detailed configuration documentation.