Documentation ¶
Index ¶
- func MakeActivateEndpoint(service integratedservices.Service) endpoint.Endpoint
- func MakeDeactivateEndpoint(service integratedservices.Service) endpoint.Endpoint
- func MakeDetailsEndpoint(service integratedservices.Service) endpoint.Endpoint
- func MakeListEndpoint(service integratedservices.Service) endpoint.Endpoint
- func MakeUpdateEndpoint(service integratedservices.Service) endpoint.Endpoint
- func RegisterHTTPHandlers(endpoints Endpoints, router *mux.Router, options ...kithttp.ServerOption)
- type ActivateRequest
- type ActivateResponse
- type DeactivateRequest
- type DeactivateResponse
- type DetailsRequest
- type DetailsResponse
- type Endpoints
- type ListRequest
- type ListResponse
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeActivateEndpoint ¶
func MakeActivateEndpoint(service integratedservices.Service) endpoint.Endpoint
MakeActivateEndpoint returns an endpoint for the matching method of the underlying service.
func MakeDeactivateEndpoint ¶
func MakeDeactivateEndpoint(service integratedservices.Service) endpoint.Endpoint
MakeDeactivateEndpoint returns an endpoint for the matching method of the underlying service.
func MakeDetailsEndpoint ¶
func MakeDetailsEndpoint(service integratedservices.Service) endpoint.Endpoint
MakeDetailsEndpoint returns an endpoint for the matching method of the underlying service.
func MakeListEndpoint ¶
func MakeListEndpoint(service integratedservices.Service) endpoint.Endpoint
MakeListEndpoint returns an endpoint for the matching method of the underlying service.
func MakeUpdateEndpoint ¶
func MakeUpdateEndpoint(service integratedservices.Service) endpoint.Endpoint
MakeUpdateEndpoint returns an endpoint for the matching method of the underlying service.
func RegisterHTTPHandlers ¶
func RegisterHTTPHandlers(endpoints Endpoints, router *mux.Router, options ...kithttp.ServerOption)
RegisterHTTPHandlers mounts all of the service endpoints into an http.Handler.
Types ¶
type ActivateRequest ¶
ActivateRequest is a request struct for Activate endpoint.
type ActivateResponse ¶
type ActivateResponse struct {
Err error
}
ActivateResponse is a response struct for Activate endpoint.
func (ActivateResponse) Failed ¶
func (r ActivateResponse) Failed() error
type DeactivateRequest ¶
DeactivateRequest is a request struct for Deactivate endpoint.
type DeactivateResponse ¶
type DeactivateResponse struct {
Err error
}
DeactivateResponse is a response struct for Deactivate endpoint.
func (DeactivateResponse) Failed ¶
func (r DeactivateResponse) Failed() error
type DetailsRequest ¶
DetailsRequest is a request struct for Details endpoint.
type DetailsResponse ¶
type DetailsResponse struct { Service integratedservices.IntegratedService Err error }
DetailsResponse is a response struct for Details endpoint.
func (DetailsResponse) Failed ¶
func (r DetailsResponse) Failed() error
type Endpoints ¶
type Endpoints struct { Activate endpoint.Endpoint Deactivate endpoint.Endpoint Details endpoint.Endpoint List endpoint.Endpoint Update endpoint.Endpoint }
Endpoints collects all of the endpoints that compose the underlying service. It's meant to be used as a helper struct, to collect all of the endpoints into a single parameter.
func MakeEndpoints ¶
func MakeEndpoints(service integratedservices.Service, middleware ...endpoint.Middleware) Endpoints
MakeEndpoints returns a(n) Endpoints struct where each endpoint invokes the corresponding method on the provided service.
type ListRequest ¶
type ListRequest struct {
ClusterID uint
}
ListRequest is a request struct for List endpoint.
type ListResponse ¶
type ListResponse struct { Services []integratedservices.IntegratedService Err error }
ListResponse is a response struct for List endpoint.
func (ListResponse) Failed ¶
func (r ListResponse) Failed() error
type UpdateRequest ¶
UpdateRequest is a request struct for Update endpoint.
type UpdateResponse ¶
type UpdateResponse struct {
Err error
}
UpdateResponse is a response struct for Update endpoint.
func (UpdateResponse) Failed ¶
func (r UpdateResponse) Failed() error