Mercurial > gemma
diff pkg/models/imports.go @ 2018:8a62ce2a5c70 unify_imports
Moved gaugemeasurement to local package.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 24 Jan 2019 17:21:14 +0100 |
parents | 25967829cf00 |
children | aeff01c6edec |
line wrap: on
line diff
--- a/pkg/models/imports.go Thu Jan 24 17:15:04 2019 +0100 +++ b/pkg/models/imports.go Thu Jan 24 17:21:14 2019 +0100 @@ -20,3 +20,12 @@ SendEmail bool `json:"send-email"` Attributes common.Attributes `json:"attributes,omitempty"` } + +// GaugeMeasurementImport contains data used to define the endpoint +type GaugeMeasurementImport struct { + URL string `json:"url"` + Insecure bool `json:"insecure"` + SendEmail bool `json:"send-email"` + // Attributes are optional attributes. + Attributes common.Attributes `json:"attributes,omitempty"` +}