Documentation ¶
Index ¶
- func DecodeBlueprintResponse(_ context.Context, r *http.Response) (interface{}, error)
- func DecodeProfileResponse(_ context.Context, r *http.Response) (interface{}, error)
- func EncodeError(ctx context.Context, err error, w http.ResponseWriter)
- func EncodeHTTPGenericRequest(_ context.Context, r *http.Request, request interface{}) error
- func MakeRemoveBlueprintsEndpoint(svc Service) endpoint.Endpoint
- func MakeRemoveProfilesEndpoint(svc Service) endpoint.Endpoint
- type Endpoints
- type HTTPHandlers
- type RemoveService
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBlueprintResponse ¶
func DecodeProfileResponse ¶
func EncodeError ¶
func EncodeError(ctx context.Context, err error, w http.ResponseWriter)
func EncodeHTTPGenericRequest ¶
EncodeHTTPGenericRequest is a transport/http.EncodeRequestFunc that JSON-encodes any request to the request body. Primarily useful in a client.
Types ¶
type Endpoints ¶
type Endpoints struct { RemoveBlueprintsEndpoint endpoint.Endpoint RemoveProfilesEndpoint endpoint.Endpoint }
func MakeEndpoints ¶
func (Endpoints) RemoveBlueprints ¶
type HTTPHandlers ¶
func MakeHTTPHandlers ¶
func MakeHTTPHandlers(ctx context.Context, endpoint Endpoints, opts ...httptransport.ServerOption) HTTPHandlers
type RemoveService ¶
func (*RemoveService) RemoveBlueprints ¶
func (svc *RemoveService) RemoveBlueprints(ctx context.Context, names []string) error
func (*RemoveService) RemoveProfiles ¶
func (svc *RemoveService) RemoveProfiles(ctx context.Context, ids []string) error
Click to show internal directories.
Click to hide internal directories.