Documentation ¶
Index ¶
- type Boat
- type BoatManeuver
- type Boats
- type ClosingReason
- type ClosingType
- type ErrorResponse
- type Forecast
- type ForecastResponse
- type Forecasts
- type ForecastsResponse
- type MongoCountResponse
- type MongoResponse
- type OKResponse
- type OpenAPILink
- type OpenAPINextLink
- type OpenAPIPreviousLink
- type OpenAPISelfLink
- type OpenDataAPIResponse
- type OpenDataAPIResponseForecast
- type OpenDataAPIResponseForecastField
- type OpenDataAPIResponseParameters
- type Refresh
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boat ¶
type Boat struct { Name string `json:"name" bson:"name" example:"EUROPA 2"` Maneuver BoatManeuver `json:"maneuver" bson:"maneuver"` ApproximativeCrossingDate time.Time `` /* 126-byte string literal not displayed */ }
type BoatManeuver ¶
type BoatManeuver string
const ( Leaving BoatManeuver = "leaving_bordeaux" Entering BoatManeuver = "entering_in_bordeaux" )
type ClosingReason ¶
type ClosingReason string
const ( BoatReason ClosingReason = "boat" Maintenance ClosingReason = "maintenance" )
type ClosingType ¶
type ClosingType string
const ( TwoWay ClosingType = "two_way" OneWay ClosingType = "one_way" )
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error" example:"error in params"`
}
type Forecast ¶
type Forecast struct { ID string `json:"id" bson:"_id" example:"63a6430fc07ff1d895c9555ef2ef6e41c1e3b1f5"` ClosingType ClosingType `json:"closing_type" bson:"closing_type"` ClosingDuration time.Duration `` /* 150-byte string literal not displayed */ CirculationClosingDate time.Time `` /* 169-byte string literal not displayed */ CirculationReopeningDate time.Time `` /* 169-byte string literal not displayed */ ClosingReason ClosingReason `json:"closing_reason" bson:"closing_reason"` Boats Boats `json:"boats,omitempty" bson:"boats,omitempty"` Link OpenAPISelfLink `` /* 190-byte string literal not displayed */ }
type ForecastResponse ¶
type ForecastsResponse ¶
type MongoCountResponse ¶
type MongoCountResponse struct {
ItemCount int `json:"itemCount" bson:"itemCount"`
}
type MongoResponse ¶
type MongoResponse struct { Results []Forecast `json:"results" bson:"results"` Count []MongoCountResponse `json:"count" bson:"count"` }
type OKResponse ¶
type OKResponse struct {
Message string `json:"message" example:"ok"`
}
type OpenAPILink ¶
type OpenAPILink struct {
Link string `json:"href"`
}
type OpenAPINextLink ¶
type OpenAPINextLink struct {
Self OpenAPILink `json:"next"`
}
type OpenAPIPreviousLink ¶
type OpenAPIPreviousLink struct {
Self OpenAPILink `json:"previous"`
}
type OpenAPISelfLink ¶
type OpenAPISelfLink struct {
Self OpenAPILink `json:"self"`
}
type OpenDataAPIResponse ¶
type OpenDataAPIResponse struct { Hits int `json:"nhits"` Parameters OpenDataAPIResponseParameters `json:"parameters"` Records []OpenDataAPIResponseForecast `json:"records"` }
type OpenDataAPIResponseForecast ¶
type OpenDataAPIResponseForecast struct { DatasetID string `json:"datasetid"` RecordID string `json:"recordid"` Fields OpenDataAPIResponseForecastField `json:"fields"` RecordTimestamp time.Time `json:"record_timestamp"` }
type OpenDataAPIResponseForecastField ¶
type OpenDataAPIResponseForecastField struct { ClosingDate string `json:"date_passage"` ClosingTime string `json:"fermeture_a_la_circulation"` OpeningTime string `json:"re_ouverture_a_la_circulation"` TotalClosing string `json:"fermeture_totale"` Boat string `json:"bateau"` ClosingType string `json:"type_de_fermeture"` }
type Refresh ¶
type Refresh struct { ID primitive.ObjectID `json:"-" bson:"_id,omitempty"` ItemCount int `json:"item_count" bson:"item_count" example:"10"` Duration time.Duration `json:"duration_ns" bson:"duration_ns" example:"348872934" swaggertype:"primitive,integer"` Timestamp time.Time `` /* 128-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.