comparison pkg/imports/fd.go @ 2723:a10022399e24

WFS downloads: Fetch user and password from config.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 19 Mar 2019 12:42:43 +0100
parents 56c8ef515d93
children 7cb027be277d
comparison
equal deleted inserted replaced
2722:1c0307207162 2723:a10022399e24
37 LOS int `json:"los"` 37 LOS int `json:"los"`
38 MinWidth int `json:"min-width"` 38 MinWidth int `json:"min-width"`
39 MaxWidth int `json:"max-width"` 39 MaxWidth int `json:"max-width"`
40 Depth int `json:"depth"` 40 Depth int `json:"depth"`
41 SourceOrganization string `json:"source-organization"` 41 SourceOrganization string `json:"source-organization"`
42 // User is an optional username for Basic Auth.
43 User string `json:"user,omitempty"`
44 // Password is an optional password for Basic Auth.
45 Password string `json:"password,omitempty"`
42 } 46 }
43 47
44 type fdTime struct{ time.Time } 48 type fdTime struct{ time.Time }
45 49
46 var guessFDTime = misc.TimeGuesser([]string{ 50 var guessFDTime = misc.TimeGuesser([]string{