Mercurial > gemma
comparison pkg/imports/ugm.go @ 5034:59a99655f34d
Added feedback support for StageDone.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 20 Mar 2020 12:28:04 +0100 |
parents | 49012340336c |
children | 56c589f7435d |
comparison
equal
deleted
inserted
replaced
5033:13d9820c1ea4 | 5034:59a99655f34d |
---|---|
43 | 43 |
44 func (ugmJobCreator) Depends() [2][]string { return gmJobCreator{}.Depends() } | 44 func (ugmJobCreator) Depends() [2][]string { return gmJobCreator{}.Depends() } |
45 | 45 |
46 func (ugmJobCreator) AutoAccept() bool { return true } | 46 func (ugmJobCreator) AutoAccept() bool { return true } |
47 | 47 |
48 func (ugmJobCreator) StageDone(context.Context, *sql.Tx, int64) error { return nil } | 48 func (ugmJobCreator) StageDone(context.Context, *sql.Tx, int64, Feedback) error { return nil } |
49 | 49 |
50 // CleanUp removes the temporary files from the filesystem. | 50 // CleanUp removes the temporary files from the filesystem. |
51 func (ugm *UploadedGaugeMeasurement) CleanUp() error { return os.RemoveAll(ugm.Dir) } | 51 func (ugm *UploadedGaugeMeasurement) CleanUp() error { return os.RemoveAll(ugm.Dir) } |
52 | 52 |
53 // Do executes the actual uploaded gauge measurement import. | 53 // Do executes the actual uploaded gauge measurement import. |