comparison pkg/imports/wg.go @ 4799:f32d086b5dbf

Removed the mechanical touch of the last commit.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 25 Oct 2019 18:40:37 +0200
parents ca6a5f722471
children 046a07a33b19
comparison
equal deleted inserted replaced
4798:ca6a5f722471 4799:f32d086b5dbf
15 package imports 15 package imports
16 16
17 import ( 17 import (
18 "context" 18 "context"
19 "database/sql" 19 "database/sql"
20 "strings"
21 "time" 20 "time"
22 21
23 "github.com/jackc/pgx/pgtype" 22 "github.com/jackc/pgx/pgtype"
24 23
25 "gemma.intevation.de/gemma/pkg/models" 24 "gemma.intevation.de/gemma/pkg/models"
40 // should validate certificates or not. 39 // should validate certificates or not.
41 Insecure bool `json:"insecure"` 40 Insecure bool `json:"insecure"`
42 } 41 }
43 42
44 func (wg *WaterwayGauge) Description() (string, error) { 43 func (wg *WaterwayGauge) Description() (string, error) {
45 44 return wg.URL, nil
46 var descs []string
47
48 descs = append(descs, wg.URL)
49 return strings.Join(descs, "|"), nil
50 } 45 }
51 46
52 // WGJobKind is the unique name of this import job type. 47 // WGJobKind is the unique name of this import job type.
53 const WGJobKind JobKind = "wg" 48 const WGJobKind JobKind = "wg"
54 49