Go-based FM stereo transmitter with RDS, Windows-first and cross-platform
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

24 satır
386B

  1. package ingest
  2. import (
  3. "fmt"
  4. "io"
  5. "net/http"
  6. "github.com/jan/fm-rds-tx/internal/config"
  7. )
  8. type FactoryDeps struct {
  9. Stdin io.Reader
  10. HTTP *http.Client
  11. }
  12. func BuildSource(cfg config.Config, deps FactoryDeps) (Source, error) {
  13. switch cfg.Ingest.Kind {
  14. case "", "none":
  15. return nil, nil
  16. default:
  17. return nil, fmt.Errorf("unsupported ingest kind: %s", cfg.Ingest.Kind)
  18. }
  19. }