Documentation
¶
Index ¶
Constants ¶
const ServiceName = "health"
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{"GetStatus"}
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 MakeInternal ¶
func MakeInternal(err error) *goa.ServiceError
MakeInternal builds a goa.ServiceError from an error.
func NewGetStatusEndpoint ¶
NewGetStatusEndpoint returns an endpoint function that calls the method "GetStatus" of service "health".
Types ¶
type Client ¶
Client is the "health" service client.
type Endpoints ¶
Endpoints wraps the "health" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "health" service with endpoints.
type HealthStatus ¶
type HealthStatus struct {
}
Status defines the structure for health information
type HealthStatusResponse ¶
type HealthStatusResponse struct {
// Status of the response.
S string
// Error message.
Errmsg *string
Data *HealthStatus
Status string
}
HealthStatusResponse is the result type of the health service GetStatus method.