1234567891011121314151617181920 |
- // +build !edgex
- // +build test
- package nodes
- import (
- "github.com/emqx/kuiper/xstream/api"
- "github.com/emqx/kuiper/xstream/topotest/mocknodes"
- )
- func getSource(t string) (api.Source, error) {
- if t == "mock" {
- return &mocknodes.MockSource{}, nil
- }
- return doGetSource(t)
- }
- func getSink(name string, action map[string]interface{}) (api.Sink, error) {
- return doGetSink(name, action)
- }
|