Documentation ¶
Index ¶
Constants ¶
View Source
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 ¶
View Source
var MethodNames = [1]string{"Check"}
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 NewCheckEndpoint ¶
NewCheckEndpoint returns an endpoint function that calls the method "Check" of service "Health".
Types ¶
type CheckResult ¶
type CheckResult struct { // Status of the API Status string }
CheckResult is the result type of the Health service Check method.
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.
Click to show internal directories.
Click to hide internal directories.