Documentation
¶
Index ¶
Constants ¶
const APIName = "Weather Forecaster Service API"
APIName is the name of the API as defined in the design.
const APIVersion = "0.0.1"
APIVersion is the version of the API as defined in the design.
const ServiceName = "Forecaster"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [1]string{"forecast"}
MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.
Functions ¶
func MakeTimeout ¶
func MakeTimeout(err error) *goa.ServiceError
MakeTimeout builds a goa.ServiceError from an error.
func NewForecastEndpoint ¶
NewForecastEndpoint returns an endpoint function that calls the method "forecast" of service "Forecaster".
Types ¶
type Client ¶
Client is the "Forecaster" service client.
type Endpoints ¶
Endpoints wraps the "Forecaster" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "Forecaster" service with endpoints.
type Forecast2 ¶
type Forecast2 struct { // Forecast location Location *Location // Weather forecast periods Periods []*Period }
Forecast2 is the result type of the Forecaster service forecast method.
type ForecastPayload ¶
ForecastPayload is the payload type of the Forecaster service forecast method.
type Location ¶
type Location struct { // Latitude Lat float64 // Longitude Long float64 // City City string // State State string }
Geographical location