Mercurial > gemma
comparison pkg/models/fa.go @ 1755:d3fe20a13339
Import: Filter fairway availabilities by period and resolve insert confilcts.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 10 Jan 2019 16:43:42 +0100 |
parents | 49e047c2106e |
children |
comparison
equal
deleted
inserted
replaced
1754:807569b08513 | 1755:d3fe20a13339 |
---|---|
11 // Author(s): | 11 // Author(s): |
12 // * Raimund Renkert <raimund.renkert@intevation.de> | 12 // * Raimund Renkert <raimund.renkert@intevation.de> |
13 | 13 |
14 package models | 14 package models |
15 | 15 |
16 import "gemma.intevation.de/gemma/pkg/common" | 16 import ( |
17 "time" | |
18 | |
19 "gemma.intevation.de/gemma/pkg/common" | |
20 ) | |
17 | 21 |
18 // FairwayAvailabilityImport contains data used to define the endpoint | 22 // FairwayAvailabilityImport contains data used to define the endpoint |
19 type FairwayAvailabilityImport struct { | 23 type FairwayAvailabilityImport struct { |
20 URL string `json:"url"` | 24 URL string `json:"url"` |
21 Insecure bool `json:"insecure"` | 25 Insecure bool `json:"insecure"` |
22 SendEmail bool `json:"send-email"` | 26 SendEmail bool `json:"send-email"` |
23 // Attributes are optional attributes. | 27 // Attributes are optional attributes. |
24 Attributes common.Attributes `json:"attributes,omitempty"` | 28 Attributes common.Attributes `json:"attributes,omitempty"` |
25 } | 29 } |
30 | |
31 type UniqueFairwayAvailability struct { | |
32 BottleneckId string | |
33 Surdat time.Time | |
34 } |