with_edgex.go 261 B

123456789101112131415
  1. // +build edgex
  2. package nodes
  3. import (
  4. "github.com/emqx/kuiper/xstream/api"
  5. "github.com/emqx/kuiper/xstream/extensions"
  6. )
  7. func getSource(t string) (api.Source, error) {
  8. if t == "edgex" {
  9. return &extensions.EdgexSource{}, nil
  10. }
  11. return doGetSource(t)
  12. }