diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-20 04:46:01 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-20 04:46:01 (GMT) |
commit | 75dd88f110c117b7fc73b83b13efd2385347f1b9 (patch) | |
tree | a0f17c7d8a60b98f894c3222824ee3cd92fe85ae /src/helsinki.at/rhimport/importer.go | |
parent | 8fc2a9c93d566feae576c1421b3c64dabc4b4976 (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.go | 4 |
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{} } |