sources_for_test_without_edgex.go 401 B

1234567891011121314151617181920
  1. // +build !edgex
  2. // +build test
  3. package node
  4. import (
  5. "github.com/lf-edge/ekuiper/internal/topo/topotest/mocknode"
  6. "github.com/lf-edge/ekuiper/pkg/api"
  7. )
  8. func getSource(t string) (api.Source, error) {
  9. if t == "mock" {
  10. return &mocknode.MockSource{}, nil
  11. }
  12. return doGetSource(t)
  13. }
  14. func getSink(name string, action map[string]interface{}) (api.Sink, error) {
  15. return doGetSink(name, action)
  16. }