summaryrefslogtreecommitdiff
path: root/rhimport/core.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-06-24 02:27:42 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-06-24 02:27:42 (GMT)
commitb76cbf24f5880f8a070fb3111d2b268052bdf97d (patch)
tree3838b3e4eb9015d9ba6a326b7a85e6afef661d5d /rhimport/core.go
parent2006f6c26b324416dae2be63f736ae4f520ef0f8 (diff)
added attachment fetcher
Diffstat (limited to 'rhimport/core.go')
-rw-r--r--rhimport/core.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rhimport/core.go b/rhimport/core.go
index e1ba735..6fb0bcb 100644
--- a/rhimport/core.go
+++ b/rhimport/core.go
@@ -120,6 +120,7 @@ type Context struct {
AutotrimLevel int
UseMetaData bool
SourceUri string
+ AttachmentChan <-chan []byte
SourceFile string
DeleteSourceFile bool
DeleteSourceDir bool
@@ -146,6 +147,7 @@ func NewContext(conf *Config, db *rddb.DBChan) *Context {
ctx.NormalizationLevel = conf.ImportParamDefaults.NormalizationLevel
ctx.AutotrimLevel = conf.ImportParamDefaults.AutotrimLevel
ctx.UseMetaData = conf.ImportParamDefaults.UseMetaData
+ ctx.AttachmentChan = nil
ctx.SourceFile = ""
ctx.DeleteSourceFile = false
ctx.DeleteSourceDir = false