Documentation ¶
Index ¶
- func DecodeConfigureRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeConfigureResponse(_ context.Context, r *http.Response) (interface{}, error)
- func DecodeInitRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeInitResponse(_ context.Context, r *http.Response) (interface{}, error)
- func DecodeInitStatusRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeInitStatusResponse(_ context.Context, r *http.Response) (interface{}, error)
- func DecodeSealStatusRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeSealStatusResponse(_ context.Context, r *http.Response) (interface{}, error)
- func DecodeUnsealRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeUnsealResponse(_ context.Context, r *http.Response) (interface{}, error)
- func EncodeGenericRequest(_ context.Context, r *http.Request, request interface{}) error
- func EncodeGenericResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error
- func EncodeInitRequest(_ context.Context, r *http.Request, request interface{}) error
- func NewHandler(ctx context.Context, endpoints endpoints.Endpoints, ...) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeConfigureRequest ¶
DecodeConfigureRequest is a transport/http.DecodeRequestFunc that decodes a JSON-encoded configure request from the HTTP request body. Primarily useful in a server.
func DecodeConfigureResponse ¶
DecodeConfigureResponse is a transport/http.DecodeResponseFunc that decodes a JSON-encoded configure response from the HTTP response body. If the response has a non-200 status code, we will interpret that as an error and attempt to decode the specific error message from the response body. Primarily useful in a client.
func DecodeInitRequest ¶
DecodeInitRequest is a transport/http.DecodeRequestFunc that decodes a JSON-encoded init request from the HTTP request body. Primarily useful in a server.
func DecodeInitResponse ¶
DecodeInitResponse is a transport/http.DecodeResponseFunc that decodes a JSON-encoded init response from the HTTP response body. If the response has a non-200 status code, we will interpret that as an error and attempt to decode the specific error message from the response body. Primarily useful in a client.
func DecodeInitStatusRequest ¶
DecodeInitStatusRequest is a transport/http.DecodeRequestFunc that is basically a noop. Normally, this method's default behavior is to decode a JSON-encoded request from the HTTP request body. Primarily useful in a server.
func DecodeInitStatusResponse ¶
DecodeInitStatusResponse is a transport/http.DecodeResponseFunc that decodes a JSON-encoded initStatus response from the HTTP response body. If the response has a non-200 status code, we will interpret that as an error and attempt to decode the specific error message from the response body. Primarily useful in a client.
func DecodeSealStatusRequest ¶
DecodeSealStatusRequest is a transport/http.DecodeRequestFunc that is basically a noop. Normally, this method's default behavior is to decode a JSON-encoded request from the HTTP request body. Primarily useful in a server.
func DecodeSealStatusResponse ¶
DecodeSealStatusResponse is a transport/http.DecodeResponseFunc that decodes a JSON-encoded sealstatus response from the HTTP response body. If the response has a non-200 status code, we will interpret that as an error and attempt to decode the specific error message from the response body. Primarily useful in a client.
func DecodeUnsealRequest ¶
DecodeUnsealRequest is a transport/http.DecodeRequestFunc that decodes a JSON-encoded unseal request from the HTTP request body. Primarily useful in a server.
func DecodeUnsealResponse ¶
DecodeUnsealResponse is a transport/http.DecodeResponseFunc that decodes a JSON-encoded unseal response from the HTTP response body. If the response has a non-200 status code, we will interpret that as an error and attempt to decode the specific error message from the response body. Primarily useful in a client.
func EncodeGenericRequest ¶
EncodeGenericRequest is a transport/http.EncodeRequestFunc that JSON-encodes any request to the request body. Primarily useful in a client.
func EncodeGenericResponse ¶
func EncodeGenericResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error
EncodeGenericResponse is a transport/http.EncodeResponseFunc that encodes the response as JSON to the response writer. Primarily useful in a server.
func EncodeInitRequest ¶
EncodeInitRequest is a transport/http.EncodeRequestFunc that JSON-encodes the init request to the request body. Primarily useful in a client.
Types ¶
This section is empty.