summaryrefslogtreecommitdiff
path: root/importer.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-20 04:46:01 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-20 04:46:01 (GMT)
commit795d37b3aa2ee04f9a56a9a75284b0a4ac8a4b0f (patch)
tree3ed36d4de95b12eea09c7cc374f83dbcecfd1dcc /importer.go
parent7a014c8f0858703ea4f70d1201976ae8c2b45d73 (diff)
session store and session kind of work now
still a lot to be done and a lot of testing is needed!
Diffstat (limited to 'importer.go')
-rw-r--r--importer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/importer.go b/importer.go
index f65515b..292d376 100644
--- a/importer.go
+++ b/importer.go
@@ -39,6 +39,8 @@ var (
bool2str = map[bool]string{false: "0", true: "1"}
)
+type ImportProgressCB func(step int, step_name string, progress float64, userdata interface{})
+
type ImportContext struct {
conf *Config
rddb *RdDbChan
@@ -59,7 +61,7 @@ type ImportContext struct {
SourceFile string
DeleteSourceFile bool
DeleteSourceDir bool
- ProgressCallBack func(step int, step_name string, progress float64, userdata interface{})
+ ProgressCallBack ImportProgressCB
ProgressCallBackData interface{}
}