admin

package
v0.0.0-...-2c4dbf7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeEndpointOfCreatePlugin

func MakeEndpointOfCreatePlugin(s Admin) endpoint.Endpoint

MakeEndpointOfCreatePlugin creates the endpoint for s.CreatePlugin.

func MakeEndpointOfCreateRoute

func MakeEndpointOfCreateRoute(s Admin) endpoint.Endpoint

MakeEndpointOfCreateRoute creates the endpoint for s.CreateRoute.

func MakeEndpointOfCreateService

func MakeEndpointOfCreateService(s Admin) endpoint.Endpoint

MakeEndpointOfCreateService creates the endpoint for s.CreateService.

func MakeEndpointOfDeletePlugin

func MakeEndpointOfDeletePlugin(s Admin) endpoint.Endpoint

MakeEndpointOfDeletePlugin creates the endpoint for s.DeletePlugin.

func MakeEndpointOfDeleteRoute

func MakeEndpointOfDeleteRoute(s Admin) endpoint.Endpoint

MakeEndpointOfDeleteRoute creates the endpoint for s.DeleteRoute.

func MakeEndpointOfDeleteService

func MakeEndpointOfDeleteService(s Admin) endpoint.Endpoint

MakeEndpointOfDeleteService creates the endpoint for s.DeleteService.

func MakeEndpointOfGetConfig

func MakeEndpointOfGetConfig(s Admin) endpoint.Endpoint

MakeEndpointOfGetConfig creates the endpoint for s.GetConfig.

func MakeEndpointOfGetPlugin

func MakeEndpointOfGetPlugin(s Admin) endpoint.Endpoint

MakeEndpointOfGetPlugin creates the endpoint for s.GetPlugin.

func MakeEndpointOfGetRoute

func MakeEndpointOfGetRoute(s Admin) endpoint.Endpoint

MakeEndpointOfGetRoute creates the endpoint for s.GetRoute.

func MakeEndpointOfGetService

func MakeEndpointOfGetService(s Admin) endpoint.Endpoint

MakeEndpointOfGetService creates the endpoint for s.GetService.

func MakeEndpointOfGetUpstream

func MakeEndpointOfGetUpstream(s Admin) endpoint.Endpoint

MakeEndpointOfGetUpstream creates the endpoint for s.GetUpstream.

func MakeEndpointOfListPlugins

func MakeEndpointOfListPlugins(s Admin) endpoint.Endpoint

MakeEndpointOfListPlugins creates the endpoint for s.ListPlugins.

func MakeEndpointOfListRoutes

func MakeEndpointOfListRoutes(s Admin) endpoint.Endpoint

MakeEndpointOfListRoutes creates the endpoint for s.ListRoutes.

func MakeEndpointOfListServices

func MakeEndpointOfListServices(s Admin) endpoint.Endpoint

MakeEndpointOfListServices creates the endpoint for s.ListServices.

func MakeEndpointOfListUpstreams

func MakeEndpointOfListUpstreams(s Admin) endpoint.Endpoint

MakeEndpointOfListUpstreams creates the endpoint for s.ListUpstreams.

func MakeEndpointOfUpdatePlugin

func MakeEndpointOfUpdatePlugin(s Admin) endpoint.Endpoint

MakeEndpointOfUpdatePlugin creates the endpoint for s.UpdatePlugin.

func MakeEndpointOfUpdateRoute

func MakeEndpointOfUpdateRoute(s Admin) endpoint.Endpoint

MakeEndpointOfUpdateRoute creates the endpoint for s.UpdateRoute.

func MakeEndpointOfUpdateService

func MakeEndpointOfUpdateService(s Admin) endpoint.Endpoint

MakeEndpointOfUpdateService creates the endpoint for s.UpdateService.

func MakeEndpointOfUpdateUpstream

func MakeEndpointOfUpdateUpstream(s Admin) endpoint.Endpoint

MakeEndpointOfUpdateUpstream creates the endpoint for s.UpdateUpstream.

func NewCodecs

func NewCodecs() *httpcodec.DefaultCodecs

func NewHTTPRouter

func NewHTTPRouter(svc Admin, codecs httpcodec.Codecs, opts ...httpoption.Option) chi.Router

func OASv2APIDoc

func OASv2APIDoc(schema oas2.Schema) string

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

type Codec struct {
	httpcodec.JSON
}

func (Codec) EncodeFailureResponse

func (c Codec) EncodeFailureResponse(w http.ResponseWriter, err error) error

type CreatePluginRequest

type CreatePluginRequest struct {
	ServiceName string       `json:"-"`
	RouteName   string       `json:"-"`
	P           *olaf.Plugin `json:"p"`
}

type CreatePluginResponse

type CreatePluginResponse struct {
	Plugin *olaf.Plugin `json:"plugin"`
	Err    error        `json:"-"`
}

func (*CreatePluginResponse) Body

func (r *CreatePluginResponse) Body() interface{}

func (*CreatePluginResponse) Failed

func (r *CreatePluginResponse) Failed() error

Failed implements endpoint.Failer.

type CreateRouteRequest

type CreateRouteRequest struct {
	ServiceName string      `json:"-"`
	Route       *olaf.Route `json:"route"`
}

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 CreateServiceRequest struct {
	Svc *olaf.Service `json:"svc"`
}

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 DeletePluginRequest struct {
	ServiceName string `json:"-"`
	RouteName   string `json:"-"`
	PluginName  string `json:"-"`
}

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 DeleteRouteRequest struct {
	ServiceName string `json:"-"`
	RouteName   string `json:"-"`
}

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 DeleteServiceRequest struct {
	ServiceName string `json:"-"`
	RouteName   string `json:"-"`
}

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

type GetConfigResponse struct {
	Data *olaf.Data `json:"data"`
	Err  error      `json:"-"`
}

func (*GetConfigResponse) Body

func (r *GetConfigResponse) Body() interface{}

func (*GetConfigResponse) Failed

func (r *GetConfigResponse) Failed() error

Failed implements endpoint.Failer.

type GetPluginRequest

type GetPluginRequest struct {
	ServiceName string `json:"-"`
	RouteName   string `json:"-"`
	PluginName  string `json:"-"`
}

type GetPluginResponse

type GetPluginResponse struct {
	Plugin *olaf.Plugin `json:"plugin"`
	Err    error        `json:"-"`
}

func (*GetPluginResponse) Body

func (r *GetPluginResponse) Body() interface{}

func (*GetPluginResponse) Failed

func (r *GetPluginResponse) Failed() error

Failed implements endpoint.Failer.

type GetRouteRequest

type GetRouteRequest struct {
	ServiceName string `json:"-"`
	RouteName   string `json:"-"`
}

type GetRouteResponse

type GetRouteResponse struct {
	Route *olaf.Route `json:"route"`
	Err   error       `json:"-"`
}

func (*GetRouteResponse) Body

func (r *GetRouteResponse) Body() interface{}

func (*GetRouteResponse) Failed

func (r *GetRouteResponse) Failed() error

Failed implements endpoint.Failer.

type GetServiceRequest

type GetServiceRequest struct {
	ServiceName string `json:"-"`
	RouteName   string `json:"-"`
}

type GetServiceResponse

type GetServiceResponse struct {
	Service *olaf.Service `json:"service"`
	Err     error         `json:"-"`
}

func (*GetServiceResponse) Body

func (r *GetServiceResponse) Body() interface{}

func (*GetServiceResponse) Failed

func (r *GetServiceResponse) Failed() error

Failed implements endpoint.Failer.

type GetUpstreamRequest

type GetUpstreamRequest struct {
	UpstreamName string `json:"-"`
	ServiceName  string `json:"-"`
}

type GetUpstreamResponse

type GetUpstreamResponse struct {
	Upstream *olaf.Upstream `json:"upstream"`
	Err      error          `json:"-"`
}

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 NewHTTPClient(codecs httpcodec.Codecs, httpClient *http.Client, baseURL string) (*HTTPClient, error)

func (*HTTPClient) CreatePlugin

func (c *HTTPClient) CreatePlugin(ctx context.Context, serviceName string, routeName string, p *olaf.Plugin) (plugin *olaf.Plugin, err error)

func (*HTTPClient) CreateRoute

func (c *HTTPClient) CreateRoute(ctx context.Context, serviceName string, route *olaf.Route) (err error)

func (*HTTPClient) CreateService

func (c *HTTPClient) CreateService(ctx context.Context, svc *olaf.Service) (err error)

func (*HTTPClient) DeletePlugin

func (c *HTTPClient) DeletePlugin(ctx context.Context, serviceName string, routeName string, pluginName string) (err error)

func (*HTTPClient) DeleteRoute

func (c *HTTPClient) DeleteRoute(ctx context.Context, serviceName string, routeName string) (err error)

func (*HTTPClient) DeleteService

func (c *HTTPClient) DeleteService(ctx context.Context, serviceName string, routeName string) (err error)

func (*HTTPClient) GetConfig

func (c *HTTPClient) GetConfig(ctx context.Context) (data *olaf.Data, err error)

func (*HTTPClient) GetPlugin

func (c *HTTPClient) GetPlugin(ctx context.Context, serviceName string, routeName string, pluginName string) (plugin *olaf.Plugin, err error)

func (*HTTPClient) GetRoute

func (c *HTTPClient) GetRoute(ctx context.Context, serviceName string, routeName string) (route *olaf.Route, err error)

func (*HTTPClient) GetService

func (c *HTTPClient) GetService(ctx context.Context, serviceName string, routeName string) (service *olaf.Service, err error)

func (*HTTPClient) GetUpstream

func (c *HTTPClient) GetUpstream(ctx context.Context, upstreamName string, serviceName string) (upstream *olaf.Upstream, err error)

func (*HTTPClient) ListPlugins

func (c *HTTPClient) ListPlugins(ctx context.Context, serviceName string, routeName string) (plugins []*olaf.Plugin, err error)

func (*HTTPClient) ListRoutes

func (c *HTTPClient) ListRoutes(ctx context.Context, serviceName string) (routes []*olaf.Route, err error)

func (*HTTPClient) ListServices

func (c *HTTPClient) ListServices(ctx context.Context) (services []*olaf.Service, err error)

func (*HTTPClient) ListUpstreams

func (c *HTTPClient) ListUpstreams(ctx context.Context) (upstreams []*olaf.Upstream, err error)

func (*HTTPClient) UpdatePlugin

func (c *HTTPClient) UpdatePlugin(ctx context.Context, serviceName string, routeName string, pluginName string, plugin *olaf.Plugin) (err error)

func (*HTTPClient) UpdateRoute

func (c *HTTPClient) UpdateRoute(ctx context.Context, serviceName string, routeName string, route *olaf.Route) (err error)

func (*HTTPClient) UpdateService

func (c *HTTPClient) UpdateService(ctx context.Context, serviceName string, routeName string, svc *olaf.Service) (err error)

func (*HTTPClient) UpdateUpstream

func (c *HTTPClient) UpdateUpstream(ctx context.Context, upstreamName string, serviceName string, upstream *olaf.Upstream) (err error)

type ListPluginsRequest

type ListPluginsRequest struct {
	ServiceName string `json:"-"`
	RouteName   string `json:"-"`
}

type ListPluginsResponse

type ListPluginsResponse struct {
	Plugins []*olaf.Plugin `json:"plugins"`
	Err     error          `json:"-"`
}

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

type ListRoutesResponse struct {
	Routes []*olaf.Route `json:"routes"`
	Err    error         `json:"-"`
}

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 UpdatePluginRequest struct {
	ServiceName string       `json:"-"`
	RouteName   string       `json:"-"`
	PluginName  string       `json:"-"`
	Plugin      *olaf.Plugin `json:"plugin"`
}

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 UpdateRouteRequest struct {
	ServiceName string      `json:"-"`
	RouteName   string      `json:"-"`
	Route       *olaf.Route `json:"route"`
}

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 UpdateServiceRequest struct {
	ServiceName string        `json:"-"`
	RouteName   string        `json:"-"`
	Svc         *olaf.Service `json:"svc"`
}

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 UpdateUpstreamRequest struct {
	UpstreamName string         `json:"-"`
	ServiceName  string         `json:"-"`
	Upstream     *olaf.Upstream `json:"upstream"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL