package
0.41.9
Repository: https://github.com/artefactual-labs/enduro.git
Documentation: pkg.go.dev

# Functions

DecodeSubmitRequest returns a decoder for requests sent to the batch submit endpoint.
EncodeHintsResponse returns an encoder for responses returned by the batch hints endpoint.
EncodeStatusResponse returns an encoder for responses returned by the batch status endpoint.
EncodeSubmitError returns an encoder for errors returned by the submit batch endpoint.
EncodeSubmitResponse returns an encoder for responses returned by the batch submit endpoint.
HandleBatchOrigin applies the CORS response headers corresponding to the origin for the service batch.
HintsBatchPath returns the URL path to the batch service hints HTTP endpoint.
Mount configures the mux to serve the batch endpoints.
MountCORSHandler configures the mux to serve the CORS endpoints for the service batch.
MountHintsHandler configures the mux to serve the "batch" service "hints" endpoint.
MountStatusHandler configures the mux to serve the "batch" service "status" endpoint.
MountSubmitHandler configures the mux to serve the "batch" service "submit" endpoint.
New instantiates HTTP handlers for all the batch service endpoints using the provided encoder and decoder.
NewCORSHandler creates a HTTP handler which returns a simple 200 response.
NewHintsHandler creates a HTTP handler which loads the HTTP request and calls the "batch" service "hints" endpoint.
NewHintsResponseBody builds the HTTP response body from the result of the "hints" endpoint of the "batch" service.
NewStatusHandler creates a HTTP handler which loads the HTTP request and calls the "batch" service "status" endpoint.
NewStatusResponseBody builds the HTTP response body from the result of the "status" endpoint of the "batch" service.
NewSubmitHandler creates a HTTP handler which loads the HTTP request and calls the "batch" service "submit" endpoint.
NewSubmitNotAvailableResponseBody builds the HTTP response body from the result of the "submit" endpoint of the "batch" service.
NewSubmitNotValidResponseBody builds the HTTP response body from the result of the "submit" endpoint of the "batch" service.
NewSubmitPayload builds a batch service submit endpoint payload.
NewSubmitResponseBody builds the HTTP response body from the result of the "submit" endpoint of the "batch" service.
StatusBatchPath returns the URL path to the batch service status HTTP endpoint.
SubmitBatchPath returns the URL path to the batch service submit HTTP endpoint.
ValidateSubmitRequestBody runs the validations defined on SubmitRequestBody.

# Structs

HintsResponseBody is the type of the "batch" service "hints" endpoint HTTP response body.
MountPoint holds information about the mounted endpoints.
Server lists the batch service endpoint HTTP handlers.
StatusResponseBody is the type of the "batch" service "status" endpoint HTTP response body.
SubmitNotAvailableResponseBody is the type of the "batch" service "submit" endpoint HTTP response body for the "not_available" error.
SubmitNotValidResponseBody is the type of the "batch" service "submit" endpoint HTTP response body for the "not_valid" error.
SubmitRequestBody is the type of the "batch" service "submit" endpoint HTTP request body.
SubmitResponseBody is the type of the "batch" service "submit" endpoint HTTP response body.