refactor: move Source type
1 file changed, 16 insertions(+), 0 deletions(-)
changed files
M internal/importer/source-type.go → internal/importer/source-type.go
@@ -2,6 +2,7 @@ package importer import ( "fmt" + "time" "github.com/stoewer/go-strcase" )@@ -42,3 +43,18 @@ *f, err = parseType(string(text)) return err } + +type Source struct { + Name string + Key string + Enable bool + Type Type + Channel string + URL string + Attribute string + ImportPath string `toml:"import-path"` + FetchTimeout time.Duration `toml:"fetch-timeout"` + ImportTimeout time.Duration `toml:"import-timeout"` + OutputPath string `toml:"output-path"` + Repo Repository +}