|
- package ingest
-
- import (
- "fmt"
- "io"
- "net/http"
-
- "github.com/jan/fm-rds-tx/internal/config"
- )
-
- type FactoryDeps struct {
- Stdin io.Reader
- HTTP *http.Client
- }
-
- func BuildSource(cfg config.Config, deps FactoryDeps) (Source, error) {
- switch cfg.Ingest.Kind {
- case "", "none":
- return nil, nil
- default:
- return nil, fmt.Errorf("unsupported ingest kind: %s", cfg.Ingest.Kind)
- }
- }
|