Documentation ¶
Index ¶
- func MakeEndpointOfCreatePlugin(s Admin) endpoint.Endpoint
- func MakeEndpointOfCreateRoute(s Admin) endpoint.Endpoint
- func MakeEndpointOfCreateService(s Admin) endpoint.Endpoint
- func MakeEndpointOfDeletePlugin(s Admin) endpoint.Endpoint
- func MakeEndpointOfDeleteRoute(s Admin) endpoint.Endpoint
- func MakeEndpointOfDeleteService(s Admin) endpoint.Endpoint
- func MakeEndpointOfGetConfig(s Admin) endpoint.Endpoint
- func MakeEndpointOfGetPlugin(s Admin) endpoint.Endpoint
- func MakeEndpointOfGetRoute(s Admin) endpoint.Endpoint
- func MakeEndpointOfGetService(s Admin) endpoint.Endpoint
- func MakeEndpointOfGetUpstream(s Admin) endpoint.Endpoint
- func MakeEndpointOfListPlugins(s Admin) endpoint.Endpoint
- func MakeEndpointOfListRoutes(s Admin) endpoint.Endpoint
- func MakeEndpointOfListServices(s Admin) endpoint.Endpoint
- func MakeEndpointOfListUpstreams(s Admin) endpoint.Endpoint
- func MakeEndpointOfUpdatePlugin(s Admin) endpoint.Endpoint
- func MakeEndpointOfUpdateRoute(s Admin) endpoint.Endpoint
- func MakeEndpointOfUpdateService(s Admin) endpoint.Endpoint
- func MakeEndpointOfUpdateUpstream(s Admin) endpoint.Endpoint
- func NewCodecs() *httpcodec.DefaultCodecs
- func NewHTTPRouter(svc Admin, codecs httpcodec.Codecs, opts ...httpoption.Option) chi.Router
- func OASv2APIDoc(schema oas2.Schema) string
- func ValidateCreatePluginRequest(newSchema func(*CreatePluginRequest) validating.Schema) httpoption.Validator
- func ValidateCreateRouteRequest(newSchema func(*CreateRouteRequest) validating.Schema) httpoption.Validator
- func ValidateCreateServiceRequest(newSchema func(*CreateServiceRequest) validating.Schema) httpoption.Validator
- func ValidateDeletePluginRequest(newSchema func(*DeletePluginRequest) validating.Schema) httpoption.Validator
- func ValidateDeleteRouteRequest(newSchema func(*DeleteRouteRequest) validating.Schema) httpoption.Validator
- func ValidateDeleteServiceRequest(newSchema func(*DeleteServiceRequest) validating.Schema) httpoption.Validator
- func ValidateGetPluginRequest(newSchema func(*GetPluginRequest) validating.Schema) httpoption.Validator
- func ValidateGetRouteRequest(newSchema func(*GetRouteRequest) validating.Schema) httpoption.Validator
- func ValidateGetServiceRequest(newSchema func(*GetServiceRequest) validating.Schema) httpoption.Validator
- func ValidateGetUpstreamRequest(newSchema func(*GetUpstreamRequest) validating.Schema) httpoption.Validator
- func ValidateListPluginsRequest(newSchema func(*ListPluginsRequest) validating.Schema) httpoption.Validator
- func ValidateListRoutesRequest(newSchema func(*ListRoutesRequest) validating.Schema) httpoption.Validator
- func ValidateUpdatePluginRequest(newSchema func(*UpdatePluginRequest) validating.Schema) httpoption.Validator
- func ValidateUpdateRouteRequest(newSchema func(*UpdateRouteRequest) validating.Schema) httpoption.Validator
- func ValidateUpdateServiceRequest(newSchema func(*UpdateServiceRequest) validating.Schema) httpoption.Validator
- func ValidateUpdateUpstreamRequest(newSchema func(*UpdateUpstreamRequest) validating.Schema) httpoption.Validator
- type Admin
- type Codec
- type CreatePluginRequest
- type CreatePluginResponse
- type CreateRouteRequest
- type CreateRouteResponse
- type CreateServiceRequest
- type CreateServiceResponse
- type DeletePluginRequest
- type DeletePluginResponse
- type DeleteRouteRequest
- type DeleteRouteResponse
- type DeleteServiceRequest
- type DeleteServiceResponse
- type GetConfigResponse
- type GetPluginRequest
- type GetPluginResponse
- type GetRouteRequest
- type GetRouteResponse
- type GetServiceRequest
- type GetServiceResponse
- type GetUpstreamRequest
- type GetUpstreamResponse
- type HTTPClient
- func (c *HTTPClient) CreatePlugin(ctx context.Context, serviceName string, routeName string, p *olaf.Plugin) (plugin *olaf.Plugin, err error)
- func (c *HTTPClient) CreateRoute(ctx context.Context, serviceName string, route *olaf.Route) (err error)
- func (c *HTTPClient) CreateService(ctx context.Context, svc *olaf.Service) (err error)
- func (c *HTTPClient) DeletePlugin(ctx context.Context, serviceName string, routeName string, pluginName string) (err error)
- func (c *HTTPClient) DeleteRoute(ctx context.Context, serviceName string, routeName string) (err error)
- func (c *HTTPClient) DeleteService(ctx context.Context, serviceName string, routeName string) (err error)
- func (c *HTTPClient) GetConfig(ctx context.Context) (data *olaf.Data, err error)
- func (c *HTTPClient) GetPlugin(ctx context.Context, serviceName string, routeName string, pluginName string) (plugin *olaf.Plugin, err error)
- func (c *HTTPClient) GetRoute(ctx context.Context, serviceName string, routeName string) (route *olaf.Route, err error)
- func (c *HTTPClient) GetService(ctx context.Context, serviceName string, routeName string) (service *olaf.Service, err error)
- func (c *HTTPClient) GetUpstream(ctx context.Context, upstreamName string, serviceName string) (upstream *olaf.Upstream, err error)
- func (c *HTTPClient) ListPlugins(ctx context.Context, serviceName string, routeName string) (plugins []*olaf.Plugin, err error)
- func (c *HTTPClient) ListRoutes(ctx context.Context, serviceName string) (routes []*olaf.Route, err error)
- func (c *HTTPClient) ListServices(ctx context.Context) (services []*olaf.Service, err error)
- func (c *HTTPClient) ListUpstreams(ctx context.Context) (upstreams []*olaf.Upstream, err error)
- func (c *HTTPClient) UpdatePlugin(ctx context.Context, serviceName string, routeName string, pluginName string, ...) (err error)
- func (c *HTTPClient) UpdateRoute(ctx context.Context, serviceName string, routeName string, route *olaf.Route) (err error)
- func (c *HTTPClient) UpdateService(ctx context.Context, serviceName string, routeName string, svc *olaf.Service) (err error)
- func (c *HTTPClient) UpdateUpstream(ctx context.Context, upstreamName string, serviceName string, ...) (err error)
- type ListPluginsRequest
- type ListPluginsResponse
- type ListRoutesRequest
- type ListRoutesResponse
- type ListServicesResponse
- type ListUpstreamsResponse
- type UpdatePluginRequest
- type UpdatePluginResponse
- type UpdateRouteRequest
- type UpdateRouteResponse
- type UpdateServiceRequest
- type UpdateServiceResponse
- type UpdateUpstreamRequest
- type UpdateUpstreamResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeEndpointOfCreatePlugin ¶
MakeEndpointOfCreatePlugin creates the endpoint for s.CreatePlugin.
func MakeEndpointOfCreateRoute ¶
MakeEndpointOfCreateRoute creates the endpoint for s.CreateRoute.
func MakeEndpointOfCreateService ¶
MakeEndpointOfCreateService creates the endpoint for s.CreateService.
func MakeEndpointOfDeletePlugin ¶
MakeEndpointOfDeletePlugin creates the endpoint for s.DeletePlugin.
func MakeEndpointOfDeleteRoute ¶
MakeEndpointOfDeleteRoute creates the endpoint for s.DeleteRoute.
func MakeEndpointOfDeleteService ¶
MakeEndpointOfDeleteService creates the endpoint for s.DeleteService.
func MakeEndpointOfGetConfig ¶
MakeEndpointOfGetConfig creates the endpoint for s.GetConfig.
func MakeEndpointOfGetPlugin ¶
MakeEndpointOfGetPlugin creates the endpoint for s.GetPlugin.
func MakeEndpointOfGetRoute ¶
MakeEndpointOfGetRoute creates the endpoint for s.GetRoute.
func MakeEndpointOfGetService ¶
MakeEndpointOfGetService creates the endpoint for s.GetService.
func MakeEndpointOfGetUpstream ¶
MakeEndpointOfGetUpstream creates the endpoint for s.GetUpstream.
func MakeEndpointOfListPlugins ¶
MakeEndpointOfListPlugins creates the endpoint for s.ListPlugins.
func MakeEndpointOfListRoutes ¶
MakeEndpointOfListRoutes creates the endpoint for s.ListRoutes.
func MakeEndpointOfListServices ¶
MakeEndpointOfListServices creates the endpoint for s.ListServices.
func MakeEndpointOfListUpstreams ¶
MakeEndpointOfListUpstreams creates the endpoint for s.ListUpstreams.
func MakeEndpointOfUpdatePlugin ¶
MakeEndpointOfUpdatePlugin creates the endpoint for s.UpdatePlugin.
func MakeEndpointOfUpdateRoute ¶
MakeEndpointOfUpdateRoute creates the endpoint for s.UpdateRoute.
func MakeEndpointOfUpdateService ¶
MakeEndpointOfUpdateService creates the endpoint for s.UpdateService.
func MakeEndpointOfUpdateUpstream ¶
MakeEndpointOfUpdateUpstream creates the endpoint for s.UpdateUpstream.
func NewCodecs ¶
func NewCodecs() *httpcodec.DefaultCodecs
func NewHTTPRouter ¶
func OASv2APIDoc ¶
func ValidateCreatePluginRequest ¶
func ValidateCreatePluginRequest(newSchema func(*CreatePluginRequest) validating.Schema) httpoption.Validator
ValidateCreatePluginRequest creates a validator for CreatePluginRequest.
func ValidateCreateRouteRequest ¶
func ValidateCreateRouteRequest(newSchema func(*CreateRouteRequest) validating.Schema) httpoption.Validator
ValidateCreateRouteRequest creates a validator for CreateRouteRequest.
func ValidateCreateServiceRequest ¶
func ValidateCreateServiceRequest(newSchema func(*CreateServiceRequest) validating.Schema) httpoption.Validator
ValidateCreateServiceRequest creates a validator for CreateServiceRequest.
func ValidateDeletePluginRequest ¶
func ValidateDeletePluginRequest(newSchema func(*DeletePluginRequest) validating.Schema) httpoption.Validator
ValidateDeletePluginRequest creates a validator for DeletePluginRequest.
func ValidateDeleteRouteRequest ¶
func ValidateDeleteRouteRequest(newSchema func(*DeleteRouteRequest) validating.Schema) httpoption.Validator
ValidateDeleteRouteRequest creates a validator for DeleteRouteRequest.
func ValidateDeleteServiceRequest ¶
func ValidateDeleteServiceRequest(newSchema func(*DeleteServiceRequest) validating.Schema) httpoption.Validator
ValidateDeleteServiceRequest creates a validator for DeleteServiceRequest.
func ValidateGetPluginRequest ¶
func ValidateGetPluginRequest(newSchema func(*GetPluginRequest) validating.Schema) httpoption.Validator
ValidateGetPluginRequest creates a validator for GetPluginRequest.
func ValidateGetRouteRequest ¶
func ValidateGetRouteRequest(newSchema func(*GetRouteRequest) validating.Schema) httpoption.Validator
ValidateGetRouteRequest creates a validator for GetRouteRequest.
func ValidateGetServiceRequest ¶
func ValidateGetServiceRequest(newSchema func(*GetServiceRequest) validating.Schema) httpoption.Validator
ValidateGetServiceRequest creates a validator for GetServiceRequest.
func ValidateGetUpstreamRequest ¶
func ValidateGetUpstreamRequest(newSchema func(*GetUpstreamRequest) validating.Schema) httpoption.Validator
ValidateGetUpstreamRequest creates a validator for GetUpstreamRequest.
func ValidateListPluginsRequest ¶
func ValidateListPluginsRequest(newSchema func(*ListPluginsRequest) validating.Schema) httpoption.Validator
ValidateListPluginsRequest creates a validator for ListPluginsRequest.
func ValidateListRoutesRequest ¶
func ValidateListRoutesRequest(newSchema func(*ListRoutesRequest) validating.Schema) httpoption.Validator
ValidateListRoutesRequest creates a validator for ListRoutesRequest.
func ValidateUpdatePluginRequest ¶
func ValidateUpdatePluginRequest(newSchema func(*UpdatePluginRequest) validating.Schema) httpoption.Validator
ValidateUpdatePluginRequest creates a validator for UpdatePluginRequest.
func ValidateUpdateRouteRequest ¶
func ValidateUpdateRouteRequest(newSchema func(*UpdateRouteRequest) validating.Schema) httpoption.Validator
ValidateUpdateRouteRequest creates a validator for UpdateRouteRequest.
func ValidateUpdateServiceRequest ¶
func ValidateUpdateServiceRequest(newSchema func(*UpdateServiceRequest) validating.Schema) httpoption.Validator
ValidateUpdateServiceRequest creates a validator for UpdateServiceRequest.
func ValidateUpdateUpstreamRequest ¶
func ValidateUpdateUpstreamRequest(newSchema func(*UpdateUpstreamRequest) validating.Schema) httpoption.Validator
ValidateUpdateUpstreamRequest creates a validator for UpdateUpstreamRequest.
Types ¶
type Admin ¶
type Admin interface { //kun:op GET /config //kun:success body=data GetConfig(ctx context.Context) (data *olaf.Data, err error) //kun:op POST /services //kun:body svc CreateService(ctx context.Context, svc *olaf.Service) (err error) //kun:op GET /services //kun:success body=services ListServices(ctx context.Context) (services []*olaf.Service, err error) //kun:op GET /services/{serviceName} //kun:op GET /routes/{routeName}/service //kun:success body=service GetService(ctx context.Context, serviceName, routeName string) (service *olaf.Service, err error) //kun:op PUT /services/{serviceName} //kun:op PUT /routes/{routeName}/service //kun:body svc UpdateService(ctx context.Context, serviceName, routeName string, svc *olaf.Service) (err error) //kun:op DELETE /services/{serviceName} //kun:op DELETE /routes/{routeName}/service //kun:success statusCode=204 DeleteService(ctx context.Context, serviceName, routeName string) (err error) //kun:op POST /routes //kun:op POST /services/{serviceName}/routes //kun:body route CreateRoute(ctx context.Context, serviceName string, route *olaf.Route) (err error) //kun:op GET /routes //kun:op GET /services/{serviceName}/routes //kun:success body=routes ListRoutes(ctx context.Context, serviceName string) (routes []*olaf.Route, err error) //kun:op GET /routes/{routeName} //kun:op GET /services/{serviceName}/routes/{routeName} //kun:success body=route GetRoute(ctx context.Context, serviceName, routeName string) (route *olaf.Route, err error) //kun:op PUT /routes/{routeName} //kun:op PUT /services/{serviceName}/routes/{routeName} //kun:body route UpdateRoute(ctx context.Context, serviceName, routeName string, route *olaf.Route) (err error) //kun:op DELETE /routes/{routeName} //kun:op DELETE /services/{serviceName}/routes/{routeName} //kun:success statusCode=204 DeleteRoute(ctx context.Context, serviceName, routeName string) (err error) //kun:op POST /plugins //kun:op POST /routes/{routeName}/plugins //kun:op POST /services/{serviceName}/plugins //kun:body p //kun:success body=plugin CreatePlugin(ctx context.Context, serviceName, routeName string, p *olaf.Plugin) (plugin *olaf.Plugin, err error) //kun:op GET /plugins //kun:op GET /routes/{routeName}/plugins //kun:op GET /services/{serviceName}/plugins //kun:success body=plugins ListPlugins(ctx context.Context, serviceName, routeName string) (plugins []*olaf.Plugin, err error) //kun:op GET /plugins/{pluginName} //kun:op GET /routes/{routeName}/plugins/{pluginName} //kun:op GET /services/{serviceName}/plugins/{pluginName} //kun:success body=plugin GetPlugin(ctx context.Context, serviceName, routeName, pluginName string) (plugin *olaf.Plugin, err error) //kun:op PUT /plugins/{pluginName} //kun:op PUT /routes/{routeName}/plugins/{pluginName} //kun:op PUT /services/{serviceName}/plugins/{pluginName} //kun:body plugin UpdatePlugin(ctx context.Context, serviceName, routeName, pluginName string, plugin *olaf.Plugin) (err error) //kun:op DELETE /plugins/{pluginName} //kun:op DELETE /routes/{routeName}/plugins/{pluginName} //kun:op DELETE /services/{serviceName}/plugins/{pluginName} //kun:success statusCode=204 DeletePlugin(ctx context.Context, serviceName, routeName, pluginName string) (err error) //kun:op GET /upstreams //kun:success body=upstreams ListUpstreams(ctx context.Context) (upstreams []*olaf.Upstream, err error) //kun:op GET /upstreams/{upstreamName} //kun:op GET /services/{serviceName}/upstream //kun:success body=upstream GetUpstream(ctx context.Context, upstreamName, serviceName string) (upstream *olaf.Upstream, err error) //kun:op PUT /upstreams/{upstreamName} //kun:op PUT /services/{serviceName}/upstream //kun:body upstream UpdateUpstream(ctx context.Context, upstreamName, serviceName string, upstream *olaf.Upstream) (err error) }
type Codec ¶
func (Codec) EncodeFailureResponse ¶
func (c Codec) EncodeFailureResponse(w http.ResponseWriter, err error) error
type CreatePluginRequest ¶
type CreatePluginResponse ¶
func (*CreatePluginResponse) Body ¶
func (r *CreatePluginResponse) Body() interface{}
func (*CreatePluginResponse) Failed ¶
func (r *CreatePluginResponse) Failed() error
Failed implements endpoint.Failer.
type CreateRouteRequest ¶
type CreateRouteResponse ¶
type CreateRouteResponse struct {
Err error `json:"-"`
}
func (*CreateRouteResponse) Body ¶
func (r *CreateRouteResponse) Body() interface{}
func (*CreateRouteResponse) Failed ¶
func (r *CreateRouteResponse) Failed() error
Failed implements endpoint.Failer.
type CreateServiceRequest ¶
type CreateServiceResponse ¶
type CreateServiceResponse struct {
Err error `json:"-"`
}
func (*CreateServiceResponse) Body ¶
func (r *CreateServiceResponse) Body() interface{}
func (*CreateServiceResponse) Failed ¶
func (r *CreateServiceResponse) Failed() error
Failed implements endpoint.Failer.
type DeletePluginRequest ¶
type DeletePluginResponse ¶
type DeletePluginResponse struct {
Err error `json:"-"`
}
func (*DeletePluginResponse) Body ¶
func (r *DeletePluginResponse) Body() interface{}
func (*DeletePluginResponse) Failed ¶
func (r *DeletePluginResponse) Failed() error
Failed implements endpoint.Failer.
type DeleteRouteRequest ¶
type DeleteRouteResponse ¶
type DeleteRouteResponse struct {
Err error `json:"-"`
}
func (*DeleteRouteResponse) Body ¶
func (r *DeleteRouteResponse) Body() interface{}
func (*DeleteRouteResponse) Failed ¶
func (r *DeleteRouteResponse) Failed() error
Failed implements endpoint.Failer.
type DeleteServiceRequest ¶
type DeleteServiceResponse ¶
type DeleteServiceResponse struct {
Err error `json:"-"`
}
func (*DeleteServiceResponse) Body ¶
func (r *DeleteServiceResponse) Body() interface{}
func (*DeleteServiceResponse) Failed ¶
func (r *DeleteServiceResponse) Failed() error
Failed implements endpoint.Failer.
type GetConfigResponse ¶
func (*GetConfigResponse) Body ¶
func (r *GetConfigResponse) Body() interface{}
func (*GetConfigResponse) Failed ¶
func (r *GetConfigResponse) Failed() error
Failed implements endpoint.Failer.
type GetPluginRequest ¶
type GetPluginResponse ¶
func (*GetPluginResponse) Body ¶
func (r *GetPluginResponse) Body() interface{}
func (*GetPluginResponse) Failed ¶
func (r *GetPluginResponse) Failed() error
Failed implements endpoint.Failer.
type GetRouteRequest ¶
type GetRouteResponse ¶
func (*GetRouteResponse) Body ¶
func (r *GetRouteResponse) Body() interface{}
func (*GetRouteResponse) Failed ¶
func (r *GetRouteResponse) Failed() error
Failed implements endpoint.Failer.
type GetServiceRequest ¶
type GetServiceResponse ¶
func (*GetServiceResponse) Body ¶
func (r *GetServiceResponse) Body() interface{}
func (*GetServiceResponse) Failed ¶
func (r *GetServiceResponse) Failed() error
Failed implements endpoint.Failer.
type GetUpstreamRequest ¶
type GetUpstreamResponse ¶
func (*GetUpstreamResponse) Body ¶
func (r *GetUpstreamResponse) Body() interface{}
func (*GetUpstreamResponse) Failed ¶
func (r *GetUpstreamResponse) Failed() error
Failed implements endpoint.Failer.
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶
func (*HTTPClient) CreatePlugin ¶
func (*HTTPClient) CreateRoute ¶
func (*HTTPClient) CreateService ¶
func (*HTTPClient) DeletePlugin ¶
func (*HTTPClient) DeleteRoute ¶
func (*HTTPClient) DeleteService ¶
func (*HTTPClient) GetService ¶
func (*HTTPClient) GetUpstream ¶
func (*HTTPClient) ListPlugins ¶
func (*HTTPClient) ListRoutes ¶
func (*HTTPClient) ListServices ¶
func (*HTTPClient) ListUpstreams ¶
func (*HTTPClient) UpdatePlugin ¶
func (*HTTPClient) UpdateRoute ¶
func (*HTTPClient) UpdateService ¶
func (*HTTPClient) UpdateUpstream ¶
type ListPluginsRequest ¶
type ListPluginsResponse ¶
func (*ListPluginsResponse) Body ¶
func (r *ListPluginsResponse) Body() interface{}
func (*ListPluginsResponse) Failed ¶
func (r *ListPluginsResponse) Failed() error
Failed implements endpoint.Failer.
type ListRoutesRequest ¶
type ListRoutesRequest struct {
ServiceName string `json:"-"`
}
type ListRoutesResponse ¶
func (*ListRoutesResponse) Body ¶
func (r *ListRoutesResponse) Body() interface{}
func (*ListRoutesResponse) Failed ¶
func (r *ListRoutesResponse) Failed() error
Failed implements endpoint.Failer.
type ListServicesResponse ¶
type ListServicesResponse struct { Services []*olaf.Service `json:"services"` Err error `json:"-"` }
func (*ListServicesResponse) Body ¶
func (r *ListServicesResponse) Body() interface{}
func (*ListServicesResponse) Failed ¶
func (r *ListServicesResponse) Failed() error
Failed implements endpoint.Failer.
type ListUpstreamsResponse ¶
type ListUpstreamsResponse struct { Upstreams []*olaf.Upstream `json:"upstreams"` Err error `json:"-"` }
func (*ListUpstreamsResponse) Body ¶
func (r *ListUpstreamsResponse) Body() interface{}
func (*ListUpstreamsResponse) Failed ¶
func (r *ListUpstreamsResponse) Failed() error
Failed implements endpoint.Failer.
type UpdatePluginRequest ¶
type UpdatePluginResponse ¶
type UpdatePluginResponse struct {
Err error `json:"-"`
}
func (*UpdatePluginResponse) Body ¶
func (r *UpdatePluginResponse) Body() interface{}
func (*UpdatePluginResponse) Failed ¶
func (r *UpdatePluginResponse) Failed() error
Failed implements endpoint.Failer.
type UpdateRouteRequest ¶
type UpdateRouteResponse ¶
type UpdateRouteResponse struct {
Err error `json:"-"`
}
func (*UpdateRouteResponse) Body ¶
func (r *UpdateRouteResponse) Body() interface{}
func (*UpdateRouteResponse) Failed ¶
func (r *UpdateRouteResponse) Failed() error
Failed implements endpoint.Failer.
type UpdateServiceRequest ¶
type UpdateServiceResponse ¶
type UpdateServiceResponse struct {
Err error `json:"-"`
}
func (*UpdateServiceResponse) Body ¶
func (r *UpdateServiceResponse) Body() interface{}
func (*UpdateServiceResponse) Failed ¶
func (r *UpdateServiceResponse) Failed() error
Failed implements endpoint.Failer.
type UpdateUpstreamRequest ¶
type UpdateUpstreamResponse ¶
type UpdateUpstreamResponse struct {
Err error `json:"-"`
}
func (*UpdateUpstreamResponse) Body ¶
func (r *UpdateUpstreamResponse) Body() interface{}
func (*UpdateUpstreamResponse) Failed ¶
func (r *UpdateUpstreamResponse) Failed() error
Failed implements endpoint.Failer.