Mercurial > gemma
comparison pkg/imports/fwsched.go @ 1551:d9eba69f6515
Registered a dummy callback function for scheduled fairway imports in the scheduler.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 10 Dec 2018 18:14:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1550:fe633765e05b | 1551:d9eba69f6515 |
---|---|
1 // This is Free Software under GNU Affero General Public License v >= 3.0 | |
2 // without warranty, see README.md and license for details. | |
3 // | |
4 // SPDX-License-Identifier: AGPL-3.0-or-later | |
5 // License-Filename: LICENSES/AGPL-3.0.txt | |
6 // | |
7 // Copyright (C) 2018 by via donau | |
8 // – Österreichische Wasserstraßen-Gesellschaft mbH | |
9 // Software engineering by Intevation GmbH | |
10 // | |
11 // Author(s): | |
12 // * Sascha L. Teichmann <sascha.teichmann@intevation.de> | |
13 | |
14 package imports | |
15 | |
16 import ( | |
17 "log" | |
18 | |
19 "gemma.intevation.de/gemma/pkg/scheduler" | |
20 ) | |
21 | |
22 func init() { | |
23 scheduler.RegisterAction("fw", scheduledFW) | |
24 } | |
25 | |
26 func scheduledFW(user string, cfgID *int64) { | |
27 log.Println("info: scheduled FW import") | |
28 // TODO: Implement me! | |
29 } |