Documentation
¶
Index ¶
Constants ¶
const APIName = "hub"
APIName is the name of the API as defined in the design.
const APIVersion = "1.0"
APIVersion is the version of the API as defined in the design.
const ServiceName = "status"
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{"Status"}
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 NewStatusEndpoint ¶
NewStatusEndpoint returns an endpoint function that calls the method "Status" of service "status".
Types ¶
type Client ¶
Client is the "status" service client.
type Endpoints ¶
Endpoints wraps the "status" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "status" service with endpoints.
type HubService ¶
type HubService struct { // Name of the service Name string // Status of the service Status string // Details of the error if any Error *string }
Describes the services and their status
type Service ¶
type Service interface { // Return status of the services Status(context.Context) (res *StatusResult, err error) }
Describes the status of each service
type StatusResult ¶
type StatusResult struct { // List of services and their status Services []*HubService }
StatusResult is the result type of the status service Status method.