# HG changeset patch # User Sascha L. Teichmann # Date 1545818092 -3600 # Node ID 8fdb57173e3f5dd275ade93b3556c971860aa347 # Parent 53304db8588826da548ba9a680bd8564af0c68d3 Waterway axis import: Made schedulable, too. TODO: Remove hard-coded parameters. diff -r 53304db85888 -r 8fdb57173e3f pkg/imports/scheduled.go --- a/pkg/imports/scheduled.go Wed Dec 26 10:46:17 2018 +0100 +++ b/pkg/imports/scheduled.go Wed Dec 26 10:54:52 2018 +0100 @@ -42,6 +42,19 @@ Insecure: false, } }) + registerAction(WXJobKind, func(cfg *IDConfig) interface{} { + log.Println("info: schedule 'wx' import") + // TODO: Take this from configuration. + var ( + featureType = "ws-wamos:ienc_wtwaxs" + sortBy = "hydro_scamin" + ) + return &WaterwayAxis{ + URL: *cfg.URL, + FeatureType: featureType, + SortBy: sortBy, + } + }) } func registerAction(kind JobKind, setup func(cfg *IDConfig) interface{}) {