Documentation
¶
Index ¶
Constants ¶
const ServiceName = "front"
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 MakeNotUsa ¶
func MakeNotUsa(err error) *goa.ServiceError
MakeNotUsa builds a goa.ServiceError from an error.
func NewForecastEndpoint ¶
NewForecastEndpoint returns an endpoint function that calls the method "forecast" of service "front".
Types ¶
type Client ¶
Client is the "front" service client.
type Endpoints ¶
Endpoints wraps the "front" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "front" service with endpoints.
type Forecast2 ¶
type Forecast2 struct { // Forecast location Location *Location // Weather forecast periods Periods []*Period }
Forecast2 is the result type of the front service forecast method.
type Location ¶
type Location struct { // Latitude Lat float64 // Longitude Long float64 // City City string // State State string }
Geographical location