comparison pkg/imports/bn.go @ 1695:be78b429ef6e

Bottleneck import: Resolved remaining golint issues.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 04 Jan 2019 10:00:11 +0100
parents 4407ecaa2192
children ad5e1cddaa09
comparison
equal deleted inserted replaced
1694:4a2fad8f57de 1695:be78b429ef6e
23 23
24 "gemma.intevation.de/gemma/pkg/common" 24 "gemma.intevation.de/gemma/pkg/common"
25 "gemma.intevation.de/gemma/pkg/soap/ifbn" 25 "gemma.intevation.de/gemma/pkg/soap/ifbn"
26 ) 26 )
27 27
28 // Bottleneck is an import job to import
29 // bottlenecks from an IFBN SOAP service.
28 type Bottleneck struct { 30 type Bottleneck struct {
29 URL string `json:"url"` 31 // URL is the URL of the SOAP service.
30 Insecure bool `json:"insecure"` 32 URL string `json:"url"`
31 } 33 // Insecure indicates if HTTPS traffic
32 34 // should validate certificates or not.
35 Insecure bool `json:"insecure"`
36 }
37
38 // BNJobKind is import queue type identifier.
33 const BNJobKind JobKind = "bn" 39 const BNJobKind JobKind = "bn"
34 40
35 const ( 41 const (
36 hasBottleneckSQL = ` 42 hasBottleneckSQL = `
37 SELECT true FROM waterway.bottlenecks WHERE bottleneck_id = $1` 43 SELECT true FROM waterway.bottlenecks WHERE bottleneck_id = $1`