about summary refs log tree commit diff stats
path: root/internal/importer/source-type.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/importer/source-type.go')
-rw-r--r--internal/importer/source-type.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/importer/source-type.go b/internal/importer/source-type.go
index 5d84547..0e9bb73 100644
--- a/internal/importer/source-type.go
+++ b/internal/importer/source-type.go
@@ -2,6 +2,7 @@ package importer
 
 import (
 	"fmt"
+	"time"
 
 	"github.com/stoewer/go-strcase"
 )
@@ -42,3 +43,18 @@ func (f *Type) UnmarshalText(text []byte) error {
 
 	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
+}