summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimport/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)
commit75dd88f110c117b7fc73b83b13efd2385347f1b9 (patch)
treea0f17c7d8a60b98f894c3222824ee3cd92fe85ae /src/helsinki.at/rhimport/importer.go
parent8fc2a9c93d566feae576c1421b3c64dabc4b4976 (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 'src/helsinki.at/rhimport/importer.go')
-rw-r--r--src/helsinki.at/rhimport/importer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/helsinki.at/rhimport/importer.go b/src/helsinki.at/rhimport/importer.go
index f65515b..292d376 100644
--- a/src/helsinki.at/rhimport/importer.go
+++ b/src/helsinki.at/rhimport/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{}
}