Documentation
¶
Overview ¶
Package availability provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func NewAvailabilityHealthzRequest(server string) (*http.Request, error)
- func NewAvailabilityReadyzRequest(server string) (*http.Request, error)
- func NewConfirmReservationRequest(server string, reservationId Uuid, params *ConfirmReservationParams) (*http.Request, error)
- func NewCreateReservationRequest(server string, params *CreateReservationParams, ...) (*http.Request, error)
- func NewCreateReservationRequestWithBody(server string, params *CreateReservationParams, contentType string, ...) (*http.Request, error)
- func NewGetReservationRequest(server string, reservationId Uuid, params *GetReservationParams) (*http.Request, error)
- func NewListSlotsRequest(server string, resourceId Uuid, params *ListSlotsParams) (*http.Request, error)
- func NewReleaseReservationRequest(server string, reservationId Uuid, params *ReleaseReservationParams, ...) (*http.Request, error)
- func NewReleaseReservationRequestWithBody(server string, reservationId Uuid, params *ReleaseReservationParams, ...) (*http.Request, error)
- type AvailabilityHealthz200JSONResponse
- type AvailabilityHealthz200JSONResponseBodyStatus
- type AvailabilityHealthzRequestObject
- type AvailabilityHealthzResponse
- type AvailabilityHealthzResponseObject
- type AvailabilityReadyz200JSONResponse
- type AvailabilityReadyz200JSONResponseBodyStatus
- type AvailabilityReadyz503JSONResponse
- type AvailabilityReadyzRequestObject
- type AvailabilityReadyzResponse
- func (r AvailabilityReadyzResponse) ContentType() string
- func (r AvailabilityReadyzResponse) GetBody() []byte
- func (r AvailabilityReadyzResponse) GetJSON200() ...
- func (r AvailabilityReadyzResponse) GetJSON503() *Error
- func (r AvailabilityReadyzResponse) Status() string
- func (r AvailabilityReadyzResponse) StatusCode() int
- type AvailabilityReadyzResponseObject
- type BadRequest
- type BadRequestJSONResponse
- type Client
- func (c *Client) AvailabilityHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AvailabilityReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ConfirmReservation(ctx context.Context, reservationId Uuid, params *ConfirmReservationParams, ...) (*http.Response, error)
- func (c *Client) CreateReservation(ctx context.Context, params *CreateReservationParams, ...) (*http.Response, error)
- func (c *Client) CreateReservationWithBody(ctx context.Context, params *CreateReservationParams, contentType string, ...) (*http.Response, error)
- func (c *Client) GetReservation(ctx context.Context, reservationId Uuid, params *GetReservationParams, ...) (*http.Response, error)
- func (c *Client) ListSlots(ctx context.Context, resourceId Uuid, params *ListSlotsParams, ...) (*http.Response, error)
- func (c *Client) ReleaseReservation(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, ...) (*http.Response, error)
- func (c *Client) ReleaseReservationWithBody(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AvailabilityHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AvailabilityHealthzResponse, error)
- func (c *ClientWithResponses) AvailabilityReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AvailabilityReadyzResponse, error)
- func (c *ClientWithResponses) ConfirmReservationWithResponse(ctx context.Context, reservationId Uuid, params *ConfirmReservationParams, ...) (*ConfirmReservationResponse, error)
- func (c *ClientWithResponses) CreateReservationWithBodyWithResponse(ctx context.Context, params *CreateReservationParams, contentType string, ...) (*CreateReservationResponse, error)
- func (c *ClientWithResponses) CreateReservationWithResponse(ctx context.Context, params *CreateReservationParams, ...) (*CreateReservationResponse, error)
- func (c *ClientWithResponses) GetReservationWithResponse(ctx context.Context, reservationId Uuid, params *GetReservationParams, ...) (*GetReservationResponse, error)
- func (c *ClientWithResponses) ListSlotsWithResponse(ctx context.Context, resourceId Uuid, params *ListSlotsParams, ...) (*ListSlotsResponse, error)
- func (c *ClientWithResponses) ReleaseReservationWithBodyWithResponse(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, ...) (*ReleaseReservationResponse, error)
- func (c *ClientWithResponses) ReleaseReservationWithResponse(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, ...) (*ReleaseReservationResponse, error)
- type ClientWithResponsesInterface
- type ConfirmReservation200JSONResponse
- type ConfirmReservation404JSONResponse
- type ConfirmReservation422JSONResponse
- type ConfirmReservation500JSONResponse
- type ConfirmReservationParams
- type ConfirmReservationRequestObject
- type ConfirmReservationResponse
- func (r ConfirmReservationResponse) ContentType() string
- func (r ConfirmReservationResponse) GetBody() []byte
- func (r ConfirmReservationResponse) GetJSON200() *Reservation
- func (r ConfirmReservationResponse) GetJSON404() *NotFound
- func (r ConfirmReservationResponse) GetJSON422() *Error
- func (r ConfirmReservationResponse) GetJSON500() *ServerError
- func (r ConfirmReservationResponse) Status() string
- func (r ConfirmReservationResponse) StatusCode() int
- type ConfirmReservationResponseObject
- type CorrelationId
- type CreateReservation201JSONResponse
- type CreateReservation400JSONResponse
- type CreateReservation409JSONResponse
- type CreateReservation422JSONResponse
- type CreateReservation500JSONResponse
- type CreateReservationJSONBody
- type CreateReservationJSONRequestBody
- type CreateReservationParams
- type CreateReservationRequestObject
- type CreateReservationResponse
- func (r CreateReservationResponse) ContentType() string
- func (r CreateReservationResponse) GetBody() []byte
- func (r CreateReservationResponse) GetJSON201() *Reservation
- func (r CreateReservationResponse) GetJSON400() *BadRequest
- func (r CreateReservationResponse) GetJSON409() *Error
- func (r CreateReservationResponse) GetJSON422() *Error
- func (r CreateReservationResponse) GetJSON500() *ServerError
- func (r CreateReservationResponse) Status() string
- func (r CreateReservationResponse) StatusCode() int
- type CreateReservationResponseObject
- type Error
- type ErrorErrorCode
- type GetReservation200JSONResponse
- type GetReservation404JSONResponse
- type GetReservation500JSONResponse
- type GetReservationParams
- type GetReservationRequestObject
- type GetReservationResponse
- func (r GetReservationResponse) ContentType() string
- func (r GetReservationResponse) GetBody() []byte
- func (r GetReservationResponse) GetJSON200() *Reservation
- func (r GetReservationResponse) GetJSON404() *NotFound
- func (r GetReservationResponse) GetJSON500() *ServerError
- func (r GetReservationResponse) Status() string
- func (r GetReservationResponse) StatusCode() int
- type GetReservationResponseObject
- type HttpRequestDoer
- type IdempotencyKey
- type InvalidParamFormatError
- type ListSlots200JSONResponse
- type ListSlots400JSONResponse
- type ListSlots404JSONResponse
- type ListSlots500JSONResponse
- type ListSlotsParams
- type ListSlotsRequestObject
- type ListSlotsResponse
- func (r ListSlotsResponse) ContentType() string
- func (r ListSlotsResponse) GetBody() []byte
- func (r ListSlotsResponse) GetJSON200() ...
- func (r ListSlotsResponse) GetJSON400() *BadRequest
- func (r ListSlotsResponse) GetJSON404() *NotFound
- func (r ListSlotsResponse) GetJSON500() *ServerError
- func (r ListSlotsResponse) Status() string
- func (r ListSlotsResponse) StatusCode() int
- type ListSlotsResponseObject
- type MiddlewareFunc
- type NotFound
- type NotFoundJSONResponse
- type ReleaseReason
- type ReleaseReservation200JSONResponse
- type ReleaseReservation404JSONResponse
- type ReleaseReservation500JSONResponse
- type ReleaseReservationJSONBody
- type ReleaseReservationJSONRequestBody
- type ReleaseReservationParams
- type ReleaseReservationRequestObject
- type ReleaseReservationResponse
- func (r ReleaseReservationResponse) ContentType() string
- func (r ReleaseReservationResponse) GetBody() []byte
- func (r ReleaseReservationResponse) GetJSON200() *Reservation
- func (r ReleaseReservationResponse) GetJSON404() *NotFound
- func (r ReleaseReservationResponse) GetJSON500() *ServerError
- func (r ReleaseReservationResponse) Status() string
- func (r ReleaseReservationResponse) StatusCode() int
- type ReleaseReservationResponseObject
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type Reservation
- type ReservationStatus
- type ServeMux
- type ServerError
- type ServerErrorJSONResponse
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AvailabilityHealthz(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AvailabilityReadyz(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ConfirmReservation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateReservation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetReservation(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSlots(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReleaseReservation(w http.ResponseWriter, r *http.Request)
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type Uuid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewAvailabilityHealthzRequest ¶
NewAvailabilityHealthzRequest constructs an http.Request for the AvailabilityHealthz method
func NewAvailabilityReadyzRequest ¶
NewAvailabilityReadyzRequest constructs an http.Request for the AvailabilityReadyz method
func NewConfirmReservationRequest ¶
func NewConfirmReservationRequest(server string, reservationId Uuid, params *ConfirmReservationParams) (*http.Request, error)
NewConfirmReservationRequest constructs an http.Request for the ConfirmReservation method
func NewCreateReservationRequest ¶
func NewCreateReservationRequest(server string, params *CreateReservationParams, body CreateReservationJSONRequestBody) (*http.Request, error)
NewCreateReservationRequest calls the generic CreateReservation builder with application/json body
func NewCreateReservationRequestWithBody ¶
func NewCreateReservationRequestWithBody(server string, params *CreateReservationParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateReservationRequestWithBody constructs an http.Request for the CreateReservation method, with any body, and a specified content type
func NewGetReservationRequest ¶
func NewGetReservationRequest(server string, reservationId Uuid, params *GetReservationParams) (*http.Request, error)
NewGetReservationRequest constructs an http.Request for the GetReservation method
func NewListSlotsRequest ¶
func NewListSlotsRequest(server string, resourceId Uuid, params *ListSlotsParams) (*http.Request, error)
NewListSlotsRequest constructs an http.Request for the ListSlots method
func NewReleaseReservationRequest ¶
func NewReleaseReservationRequest(server string, reservationId Uuid, params *ReleaseReservationParams, body ReleaseReservationJSONRequestBody) (*http.Request, error)
NewReleaseReservationRequest calls the generic ReleaseReservation builder with application/json body
func NewReleaseReservationRequestWithBody ¶
func NewReleaseReservationRequestWithBody(server string, reservationId Uuid, params *ReleaseReservationParams, contentType string, body io.Reader) (*http.Request, error)
NewReleaseReservationRequestWithBody constructs an http.Request for the ReleaseReservation method, with any body, and a specified content type
Types ¶
type AvailabilityHealthz200JSONResponse ¶
type AvailabilityHealthz200JSONResponse struct {
Status AvailabilityHealthz200JSONResponseBodyStatus `json:"status"`
}
func (AvailabilityHealthz200JSONResponse) VisitAvailabilityHealthzResponse ¶
func (response AvailabilityHealthz200JSONResponse) VisitAvailabilityHealthzResponse(w http.ResponseWriter) error
type AvailabilityHealthz200JSONResponseBodyStatus ¶
type AvailabilityHealthz200JSONResponseBodyStatus string
AvailabilityHealthz200JSONResponseBodyStatus defines parameters for AvailabilityHealthz.
const (
AvailabilityHealthz200JSONResponseBodyStatusOk AvailabilityHealthz200JSONResponseBodyStatus = "ok"
)
Defines values for AvailabilityHealthz200JSONResponseBodyStatus.
func (AvailabilityHealthz200JSONResponseBodyStatus) Valid ¶
func (e AvailabilityHealthz200JSONResponseBodyStatus) Valid() bool
Valid indicates whether the value is a known member of the AvailabilityHealthz200JSONResponseBodyStatus enum.
type AvailabilityHealthzRequestObject ¶
type AvailabilityHealthzRequestObject struct {
}
type AvailabilityHealthzResponse ¶
type AvailabilityHealthzResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Status AvailabilityHealthz200JSONResponseBodyStatus `json:"status"`
}
}
func ParseAvailabilityHealthzResponse ¶
func ParseAvailabilityHealthzResponse(rsp *http.Response) (*AvailabilityHealthzResponse, error)
ParseAvailabilityHealthzResponse parses an HTTP response from a AvailabilityHealthzWithResponse call
func (AvailabilityHealthzResponse) ContentType ¶
func (r AvailabilityHealthzResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AvailabilityHealthzResponse) GetBody ¶
func (r AvailabilityHealthzResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AvailabilityHealthzResponse) GetJSON200 ¶
func (r AvailabilityHealthzResponse) GetJSON200() *struct { Status AvailabilityHealthz200JSONResponseBodyStatus `json:"status"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AvailabilityHealthzResponse) Status ¶
func (r AvailabilityHealthzResponse) Status() string
Status returns HTTPResponse.Status
func (AvailabilityHealthzResponse) StatusCode ¶
func (r AvailabilityHealthzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AvailabilityHealthzResponseObject ¶
type AvailabilityHealthzResponseObject interface {
VisitAvailabilityHealthzResponse(w http.ResponseWriter) error
}
type AvailabilityReadyz200JSONResponse ¶
type AvailabilityReadyz200JSONResponse struct {
Status AvailabilityReadyz200JSONResponseBodyStatus `json:"status"`
}
func (AvailabilityReadyz200JSONResponse) VisitAvailabilityReadyzResponse ¶
func (response AvailabilityReadyz200JSONResponse) VisitAvailabilityReadyzResponse(w http.ResponseWriter) error
type AvailabilityReadyz200JSONResponseBodyStatus ¶
type AvailabilityReadyz200JSONResponseBodyStatus string
AvailabilityReadyz200JSONResponseBodyStatus defines parameters for AvailabilityReadyz.
const (
AvailabilityReadyz200JSONResponseBodyStatusOk AvailabilityReadyz200JSONResponseBodyStatus = "ok"
)
Defines values for AvailabilityReadyz200JSONResponseBodyStatus.
func (AvailabilityReadyz200JSONResponseBodyStatus) Valid ¶
func (e AvailabilityReadyz200JSONResponseBodyStatus) Valid() bool
Valid indicates whether the value is a known member of the AvailabilityReadyz200JSONResponseBodyStatus enum.
type AvailabilityReadyz503JSONResponse ¶
type AvailabilityReadyz503JSONResponse Error
func (AvailabilityReadyz503JSONResponse) VisitAvailabilityReadyzResponse ¶
func (response AvailabilityReadyz503JSONResponse) VisitAvailabilityReadyzResponse(w http.ResponseWriter) error
type AvailabilityReadyzRequestObject ¶
type AvailabilityReadyzRequestObject struct {
}
type AvailabilityReadyzResponse ¶
type AvailabilityReadyzResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Status AvailabilityReadyz200JSONResponseBodyStatus `json:"status"`
}
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *Error
}
func ParseAvailabilityReadyzResponse ¶
func ParseAvailabilityReadyzResponse(rsp *http.Response) (*AvailabilityReadyzResponse, error)
ParseAvailabilityReadyzResponse parses an HTTP response from a AvailabilityReadyzWithResponse call
func (AvailabilityReadyzResponse) ContentType ¶
func (r AvailabilityReadyzResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AvailabilityReadyzResponse) GetBody ¶
func (r AvailabilityReadyzResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AvailabilityReadyzResponse) GetJSON200 ¶
func (r AvailabilityReadyzResponse) GetJSON200() *struct { Status AvailabilityReadyz200JSONResponseBodyStatus `json:"status"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AvailabilityReadyzResponse) GetJSON503 ¶
func (r AvailabilityReadyzResponse) GetJSON503() *Error
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (AvailabilityReadyzResponse) Status ¶
func (r AvailabilityReadyzResponse) Status() string
Status returns HTTPResponse.Status
func (AvailabilityReadyzResponse) StatusCode ¶
func (r AvailabilityReadyzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AvailabilityReadyzResponseObject ¶
type AvailabilityReadyzResponseObject interface {
VisitAvailabilityReadyzResponse(w http.ResponseWriter) error
}
type BadRequestJSONResponse ¶
type BadRequestJSONResponse Error
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AvailabilityHealthz ¶
func (c *Client) AvailabilityHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
AvailabilityHealthz Liveness probe
Corresponds with GET /healthz (the `AvailabilityHealthz` operationId).
func (*Client) AvailabilityReadyz ¶
func (c *Client) AvailabilityReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
AvailabilityReadyz Readiness probe — checks database and broker connectivity
Corresponds with GET /readyz (the `AvailabilityReadyz` operationId).
func (*Client) ConfirmReservation ¶
func (c *Client) ConfirmReservation(ctx context.Context, reservationId Uuid, params *ConfirmReservationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmReservation Promote a held reservation to confirmed
Called on the payment-success path. Clears `expires_at` so the sweeper leaves it alone. Idempotent: confirming an already-confirmed reservation returns 200.
Corresponds with POST /v1/reservations/{reservation_id}/actions/confirm (the `ConfirmReservation` operationId).
func (*Client) CreateReservation ¶
func (c *Client) CreateReservation(ctx context.Context, params *CreateReservationParams, body CreateReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateReservation Reserve a time window for a resource
Atomically inserts a reservation guarded by the exclusion constraint. Overlapping requests for the same resource are rejected by the database, so exactly one of N concurrent callers wins and the rest receive `409 reservation_overlap`.
Created in `held` state with `expires_at` set from BOOKING_HOLD_TTL_SECONDS. An unconfirmed hold is swept at expiry, emitting `ReservationReleased`.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/reservations (the `CreateReservation` operationId).
func (*Client) CreateReservationWithBody ¶
func (c *Client) CreateReservationWithBody(ctx context.Context, params *CreateReservationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateReservationWithBody Reserve a time window for a resource
Atomically inserts a reservation guarded by the exclusion constraint. Overlapping requests for the same resource are rejected by the database, so exactly one of N concurrent callers wins and the rest receive `409 reservation_overlap`.
Created in `held` state with `expires_at` set from BOOKING_HOLD_TTL_SECONDS. An unconfirmed hold is swept at expiry, emitting `ReservationReleased`.
Takes any type of body and a specified content type.
Corresponds with POST /v1/reservations (the `CreateReservation` operationId).
func (*Client) GetReservation ¶
func (c *Client) GetReservation(ctx context.Context, reservationId Uuid, params *GetReservationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetReservation Get a reservation
Corresponds with GET /v1/reservations/{reservation_id} (the `GetReservation` operationId).
func (*Client) ListSlots ¶
func (c *Client) ListSlots(ctx context.Context, resourceId Uuid, params *ListSlotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSlots Query free/busy windows for a resource
Advisory only. A free window here can be taken before you reserve it — the reserve call is the only authority. Treat this as "what to show the customer", never as a guarantee.
Corresponds with GET /v1/resources/{resource_id}/slots (the `ListSlots` operationId).
func (*Client) ReleaseReservation ¶
func (c *Client) ReleaseReservation(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, body ReleaseReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ReleaseReservation Release a reservation, freeing the window
The compensation path. Called when payment fails or a booking is cancelled, and by the TTL sweeper. Emits `ReservationReleased`. Idempotent: releasing an already-released reservation returns 200.
Takes a body of the `application/json` content type.
Corresponds with POST /v1/reservations/{reservation_id}/actions/release (the `ReleaseReservation` operationId).
func (*Client) ReleaseReservationWithBody ¶
func (c *Client) ReleaseReservationWithBody(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReleaseReservationWithBody Release a reservation, freeing the window
The compensation path. Called when payment fails or a booking is cancelled, and by the TTL sweeper. Emits `ReservationReleased`. Idempotent: releasing an already-released reservation returns 200.
Takes any type of body and a specified content type.
Corresponds with POST /v1/reservations/{reservation_id}/actions/release (the `ReleaseReservation` operationId).
type ClientInterface ¶
type ClientInterface interface {
// AvailabilityHealthz Liveness probe
//
// Corresponds with GET /healthz (the `AvailabilityHealthz` operationId).
AvailabilityHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AvailabilityReadyz Readiness probe — checks database and broker connectivity
//
// Corresponds with GET /readyz (the `AvailabilityReadyz` operationId).
AvailabilityReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateReservationWithBody Reserve a time window for a resource
//
// Atomically inserts a reservation guarded by the exclusion constraint. Overlapping
// requests for the same resource are rejected by the database, so exactly one of N
// concurrent callers wins and the rest receive `409 reservation_overlap`.
//
// Created in `held` state with `expires_at` set from BOOKING_HOLD_TTL_SECONDS. An
// unconfirmed hold is swept at expiry, emitting `ReservationReleased`.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/reservations (the `CreateReservation` operationId).
CreateReservationWithBody(ctx context.Context, params *CreateReservationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateReservation Reserve a time window for a resource
//
// Atomically inserts a reservation guarded by the exclusion constraint. Overlapping
// requests for the same resource are rejected by the database, so exactly one of N
// concurrent callers wins and the rest receive `409 reservation_overlap`.
//
// Created in `held` state with `expires_at` set from BOOKING_HOLD_TTL_SECONDS. An
// unconfirmed hold is swept at expiry, emitting `ReservationReleased`.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/reservations (the `CreateReservation` operationId).
CreateReservation(ctx context.Context, params *CreateReservationParams, body CreateReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetReservation Get a reservation
//
// Corresponds with GET /v1/reservations/{reservation_id} (the `GetReservation` operationId).
GetReservation(ctx context.Context, reservationId Uuid, params *GetReservationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmReservation Promote a held reservation to confirmed
//
// Called on the payment-success path. Clears `expires_at` so the sweeper leaves it
// alone. Idempotent: confirming an already-confirmed reservation returns 200.
//
// Corresponds with POST /v1/reservations/{reservation_id}/actions/confirm (the `ConfirmReservation` operationId).
ConfirmReservation(ctx context.Context, reservationId Uuid, params *ConfirmReservationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReleaseReservationWithBody Release a reservation, freeing the window
//
// The compensation path. Called when payment fails or a booking is cancelled, and by
// the TTL sweeper. Emits `ReservationReleased`. Idempotent: releasing an
// already-released reservation returns 200.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/reservations/{reservation_id}/actions/release (the `ReleaseReservation` operationId).
ReleaseReservationWithBody(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReleaseReservation Release a reservation, freeing the window
//
// The compensation path. Called when payment fails or a booking is cancelled, and by
// the TTL sweeper. Emits `ReservationReleased`. Idempotent: releasing an
// already-released reservation returns 200.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/reservations/{reservation_id}/actions/release (the `ReleaseReservation` operationId).
ReleaseReservation(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, body ReleaseReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSlots Query free/busy windows for a resource
//
// Advisory only. A free window here can be taken before you reserve it — the reserve
// call is the only authority. Treat this as "what to show the customer", never as a
// guarantee.
//
// Corresponds with GET /v1/resources/{resource_id}/slots (the `ListSlots` operationId).
ListSlots(ctx context.Context, resourceId Uuid, params *ListSlotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AvailabilityHealthzWithResponse ¶
func (c *ClientWithResponses) AvailabilityHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AvailabilityHealthzResponse, error)
AvailabilityHealthzWithResponse Liveness probe
Returns a wrapper object for the known response body format(s).
Corresponds with GET /healthz (the `AvailabilityHealthz` operationId).
func (*ClientWithResponses) AvailabilityReadyzWithResponse ¶
func (c *ClientWithResponses) AvailabilityReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AvailabilityReadyzResponse, error)
AvailabilityReadyzWithResponse Readiness probe — checks database and broker connectivity
Returns a wrapper object for the known response body format(s).
Corresponds with GET /readyz (the `AvailabilityReadyz` operationId).
func (*ClientWithResponses) ConfirmReservationWithResponse ¶
func (c *ClientWithResponses) ConfirmReservationWithResponse(ctx context.Context, reservationId Uuid, params *ConfirmReservationParams, reqEditors ...RequestEditorFn) (*ConfirmReservationResponse, error)
ConfirmReservationWithResponse Promote a held reservation to confirmed
Called on the payment-success path. Clears `expires_at` so the sweeper leaves it alone. Idempotent: confirming an already-confirmed reservation returns 200.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/reservations/{reservation_id}/actions/confirm (the `ConfirmReservation` operationId).
func (*ClientWithResponses) CreateReservationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateReservationWithBodyWithResponse(ctx context.Context, params *CreateReservationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReservationResponse, error)
CreateReservationWithBodyWithResponse Reserve a time window for a resource
Atomically inserts a reservation guarded by the exclusion constraint. Overlapping requests for the same resource are rejected by the database, so exactly one of N concurrent callers wins and the rest receive `409 reservation_overlap`.
Created in `held` state with `expires_at` set from BOOKING_HOLD_TTL_SECONDS. An unconfirmed hold is swept at expiry, emitting `ReservationReleased`.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/reservations (the `CreateReservation` operationId).
func (*ClientWithResponses) CreateReservationWithResponse ¶
func (c *ClientWithResponses) CreateReservationWithResponse(ctx context.Context, params *CreateReservationParams, body CreateReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReservationResponse, error)
CreateReservationWithResponse Reserve a time window for a resource
Atomically inserts a reservation guarded by the exclusion constraint. Overlapping requests for the same resource are rejected by the database, so exactly one of N concurrent callers wins and the rest receive `409 reservation_overlap`.
Created in `held` state with `expires_at` set from BOOKING_HOLD_TTL_SECONDS. An unconfirmed hold is swept at expiry, emitting `ReservationReleased`.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/reservations (the `CreateReservation` operationId).
func (*ClientWithResponses) GetReservationWithResponse ¶
func (c *ClientWithResponses) GetReservationWithResponse(ctx context.Context, reservationId Uuid, params *GetReservationParams, reqEditors ...RequestEditorFn) (*GetReservationResponse, error)
GetReservationWithResponse Get a reservation
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/reservations/{reservation_id} (the `GetReservation` operationId).
func (*ClientWithResponses) ListSlotsWithResponse ¶
func (c *ClientWithResponses) ListSlotsWithResponse(ctx context.Context, resourceId Uuid, params *ListSlotsParams, reqEditors ...RequestEditorFn) (*ListSlotsResponse, error)
ListSlotsWithResponse Query free/busy windows for a resource
Advisory only. A free window here can be taken before you reserve it — the reserve call is the only authority. Treat this as "what to show the customer", never as a guarantee.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v1/resources/{resource_id}/slots (the `ListSlots` operationId).
func (*ClientWithResponses) ReleaseReservationWithBodyWithResponse ¶
func (c *ClientWithResponses) ReleaseReservationWithBodyWithResponse(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReleaseReservationResponse, error)
ReleaseReservationWithBodyWithResponse Release a reservation, freeing the window
The compensation path. Called when payment fails or a booking is cancelled, and by the TTL sweeper. Emits `ReservationReleased`. Idempotent: releasing an already-released reservation returns 200.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/reservations/{reservation_id}/actions/release (the `ReleaseReservation` operationId).
func (*ClientWithResponses) ReleaseReservationWithResponse ¶
func (c *ClientWithResponses) ReleaseReservationWithResponse(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, body ReleaseReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*ReleaseReservationResponse, error)
ReleaseReservationWithResponse Release a reservation, freeing the window
The compensation path. Called when payment fails or a booking is cancelled, and by the TTL sweeper. Emits `ReservationReleased`. Idempotent: releasing an already-released reservation returns 200.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v1/reservations/{reservation_id}/actions/release (the `ReleaseReservation` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// AvailabilityHealthzWithResponse Liveness probe
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /healthz (the `AvailabilityHealthz` operationId).
AvailabilityHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AvailabilityHealthzResponse, error)
// AvailabilityReadyzWithResponse Readiness probe — checks database and broker connectivity
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /readyz (the `AvailabilityReadyz` operationId).
AvailabilityReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AvailabilityReadyzResponse, error)
// CreateReservationWithBodyWithResponse Reserve a time window for a resource
//
// Atomically inserts a reservation guarded by the exclusion constraint. Overlapping
// requests for the same resource are rejected by the database, so exactly one of N
// concurrent callers wins and the rest receive `409 reservation_overlap`.
//
// Created in `held` state with `expires_at` set from BOOKING_HOLD_TTL_SECONDS. An
// unconfirmed hold is swept at expiry, emitting `ReservationReleased`.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/reservations (the `CreateReservation` operationId).
CreateReservationWithBodyWithResponse(ctx context.Context, params *CreateReservationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReservationResponse, error)
// CreateReservationWithResponse Reserve a time window for a resource
//
// Atomically inserts a reservation guarded by the exclusion constraint. Overlapping
// requests for the same resource are rejected by the database, so exactly one of N
// concurrent callers wins and the rest receive `409 reservation_overlap`.
//
// Created in `held` state with `expires_at` set from BOOKING_HOLD_TTL_SECONDS. An
// unconfirmed hold is swept at expiry, emitting `ReservationReleased`.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/reservations (the `CreateReservation` operationId).
CreateReservationWithResponse(ctx context.Context, params *CreateReservationParams, body CreateReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReservationResponse, error)
// GetReservationWithResponse Get a reservation
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/reservations/{reservation_id} (the `GetReservation` operationId).
GetReservationWithResponse(ctx context.Context, reservationId Uuid, params *GetReservationParams, reqEditors ...RequestEditorFn) (*GetReservationResponse, error)
// ConfirmReservationWithResponse Promote a held reservation to confirmed
//
// Called on the payment-success path. Clears `expires_at` so the sweeper leaves it
// alone. Idempotent: confirming an already-confirmed reservation returns 200.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/reservations/{reservation_id}/actions/confirm (the `ConfirmReservation` operationId).
ConfirmReservationWithResponse(ctx context.Context, reservationId Uuid, params *ConfirmReservationParams, reqEditors ...RequestEditorFn) (*ConfirmReservationResponse, error)
// ReleaseReservationWithBodyWithResponse Release a reservation, freeing the window
//
// The compensation path. Called when payment fails or a booking is cancelled, and by
// the TTL sweeper. Emits `ReservationReleased`. Idempotent: releasing an
// already-released reservation returns 200.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/reservations/{reservation_id}/actions/release (the `ReleaseReservation` operationId).
ReleaseReservationWithBodyWithResponse(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReleaseReservationResponse, error)
// ReleaseReservationWithResponse Release a reservation, freeing the window
//
// The compensation path. Called when payment fails or a booking is cancelled, and by
// the TTL sweeper. Emits `ReservationReleased`. Idempotent: releasing an
// already-released reservation returns 200.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v1/reservations/{reservation_id}/actions/release (the `ReleaseReservation` operationId).
ReleaseReservationWithResponse(ctx context.Context, reservationId Uuid, params *ReleaseReservationParams, body ReleaseReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*ReleaseReservationResponse, error)
// ListSlotsWithResponse Query free/busy windows for a resource
//
// Advisory only. A free window here can be taken before you reserve it — the reserve
// call is the only authority. Treat this as "what to show the customer", never as a
// guarantee.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v1/resources/{resource_id}/slots (the `ListSlots` operationId).
ListSlotsWithResponse(ctx context.Context, resourceId Uuid, params *ListSlotsParams, reqEditors ...RequestEditorFn) (*ListSlotsResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConfirmReservation200JSONResponse ¶
type ConfirmReservation200JSONResponse Reservation
func (ConfirmReservation200JSONResponse) VisitConfirmReservationResponse ¶
func (response ConfirmReservation200JSONResponse) VisitConfirmReservationResponse(w http.ResponseWriter) error
type ConfirmReservation404JSONResponse ¶
type ConfirmReservation404JSONResponse struct{ NotFoundJSONResponse }
func (ConfirmReservation404JSONResponse) VisitConfirmReservationResponse ¶
func (response ConfirmReservation404JSONResponse) VisitConfirmReservationResponse(w http.ResponseWriter) error
type ConfirmReservation422JSONResponse ¶
type ConfirmReservation422JSONResponse Error
func (ConfirmReservation422JSONResponse) VisitConfirmReservationResponse ¶
func (response ConfirmReservation422JSONResponse) VisitConfirmReservationResponse(w http.ResponseWriter) error
type ConfirmReservation500JSONResponse ¶
type ConfirmReservation500JSONResponse struct{ ServerErrorJSONResponse }
func (ConfirmReservation500JSONResponse) VisitConfirmReservationResponse ¶
func (response ConfirmReservation500JSONResponse) VisitConfirmReservationResponse(w http.ResponseWriter) error
type ConfirmReservationParams ¶
type ConfirmReservationParams struct {
// XCorrelationId Propagated unchanged through every downstream call, event, log line, and span.
XCorrelationId *CorrelationId `json:"X-Correlation-Id,omitempty"`
}
ConfirmReservationParams defines parameters for ConfirmReservation.
type ConfirmReservationRequestObject ¶
type ConfirmReservationRequestObject struct {
ReservationId Uuid `json:"reservation_id"`
Params ConfirmReservationParams
}
type ConfirmReservationResponse ¶
type ConfirmReservationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Reservation
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ServerError
}
func ParseConfirmReservationResponse ¶
func ParseConfirmReservationResponse(rsp *http.Response) (*ConfirmReservationResponse, error)
ParseConfirmReservationResponse parses an HTTP response from a ConfirmReservationWithResponse call
func (ConfirmReservationResponse) ContentType ¶
func (r ConfirmReservationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ConfirmReservationResponse) GetBody ¶
func (r ConfirmReservationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ConfirmReservationResponse) GetJSON200 ¶
func (r ConfirmReservationResponse) GetJSON200() *Reservation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ConfirmReservationResponse) GetJSON404 ¶
func (r ConfirmReservationResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ConfirmReservationResponse) GetJSON422 ¶
func (r ConfirmReservationResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ConfirmReservationResponse) GetJSON500 ¶
func (r ConfirmReservationResponse) GetJSON500() *ServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ConfirmReservationResponse) Status ¶
func (r ConfirmReservationResponse) Status() string
Status returns HTTPResponse.Status
func (ConfirmReservationResponse) StatusCode ¶
func (r ConfirmReservationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfirmReservationResponseObject ¶
type ConfirmReservationResponseObject interface {
VisitConfirmReservationResponse(w http.ResponseWriter) error
}
type CreateReservation201JSONResponse ¶
type CreateReservation201JSONResponse Reservation
func (CreateReservation201JSONResponse) VisitCreateReservationResponse ¶
func (response CreateReservation201JSONResponse) VisitCreateReservationResponse(w http.ResponseWriter) error
type CreateReservation400JSONResponse ¶
type CreateReservation400JSONResponse struct{ BadRequestJSONResponse }
func (CreateReservation400JSONResponse) VisitCreateReservationResponse ¶
func (response CreateReservation400JSONResponse) VisitCreateReservationResponse(w http.ResponseWriter) error
type CreateReservation409JSONResponse ¶
type CreateReservation409JSONResponse Error
func (CreateReservation409JSONResponse) VisitCreateReservationResponse ¶
func (response CreateReservation409JSONResponse) VisitCreateReservationResponse(w http.ResponseWriter) error
type CreateReservation422JSONResponse ¶
type CreateReservation422JSONResponse Error
func (CreateReservation422JSONResponse) VisitCreateReservationResponse ¶
func (response CreateReservation422JSONResponse) VisitCreateReservationResponse(w http.ResponseWriter) error
type CreateReservation500JSONResponse ¶
type CreateReservation500JSONResponse struct{ ServerErrorJSONResponse }
func (CreateReservation500JSONResponse) VisitCreateReservationResponse ¶
func (response CreateReservation500JSONResponse) VisitCreateReservationResponse(w http.ResponseWriter) error
type CreateReservationJSONBody ¶
type CreateReservationJSONBody struct {
// BookingId The booking this reservation backs (Booking owns the saga)
BookingId Uuid `json:"booking_id"`
// EndsAt Exclusive. UTC. Must be strictly after starts_at.
EndsAt time.Time `json:"ends_at"`
// ResourceId UUIDv7, string-typed everywhere
//
// Examples: 01912d5a-7f3e-7c1a-9b2e-3f4a5b6c7d8e
ResourceId Uuid `json:"resource_id"`
// StartsAt Inclusive. UTC.
StartsAt time.Time `json:"starts_at"`
}
CreateReservationJSONBody defines parameters for CreateReservation.
type CreateReservationJSONRequestBody ¶
type CreateReservationJSONRequestBody CreateReservationJSONBody
CreateReservationJSONRequestBody defines body for CreateReservation for application/json ContentType.
type CreateReservationParams ¶
type CreateReservationParams struct {
// XCorrelationId Propagated unchanged through every downstream call, event, log line, and span.
XCorrelationId *CorrelationId `json:"X-Correlation-Id,omitempty"`
// IdempotencyKey Client-generated unique key. Replaying the same key with the same body returns the
// original result rather than reserving twice; replaying with a different body is a
// `409 idempotency_key_reuse`. Retries are at-least-once, so this is mandatory.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
CreateReservationParams defines parameters for CreateReservation.
type CreateReservationRequestObject ¶
type CreateReservationRequestObject struct {
Params CreateReservationParams
Body *CreateReservationJSONRequestBody
}
type CreateReservationResponse ¶
type CreateReservationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Reservation
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ServerError
}
func ParseCreateReservationResponse ¶
func ParseCreateReservationResponse(rsp *http.Response) (*CreateReservationResponse, error)
ParseCreateReservationResponse parses an HTTP response from a CreateReservationWithResponse call
func (CreateReservationResponse) ContentType ¶
func (r CreateReservationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateReservationResponse) GetBody ¶
func (r CreateReservationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateReservationResponse) GetJSON201 ¶
func (r CreateReservationResponse) GetJSON201() *Reservation
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateReservationResponse) GetJSON400 ¶
func (r CreateReservationResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateReservationResponse) GetJSON409 ¶
func (r CreateReservationResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateReservationResponse) GetJSON422 ¶
func (r CreateReservationResponse) GetJSON422() *Error
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateReservationResponse) GetJSON500 ¶
func (r CreateReservationResponse) GetJSON500() *ServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateReservationResponse) Status ¶
func (r CreateReservationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateReservationResponse) StatusCode ¶
func (r CreateReservationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateReservationResponseObject ¶
type CreateReservationResponseObject interface {
VisitCreateReservationResponse(w http.ResponseWriter) error
}
type Error ¶
type Error struct {
Error struct {
Code ErrorErrorCode `json:"code"`
CorrelationId string `json:"correlation_id"`
Details *[]struct {
Field string `json:"field"`
Issue string `json:"issue"`
} `json:"details,omitempty"`
Message string `json:"message"`
} `json:"error"`
}
Error defines model for Error.
type ErrorErrorCode ¶
type ErrorErrorCode string
ErrorErrorCode defines model for Error.Error.Code.
const ( IdempotencyKeyReuse ErrorErrorCode = "idempotency_key_reuse" InternalError ErrorErrorCode = "internal_error" InvalidTimeWindow ErrorErrorCode = "invalid_time_window" ReservationAlreadyReleased ErrorErrorCode = "reservation_already_released" ReservationNotFound ErrorErrorCode = "reservation_not_found" ReservationOverlap ErrorErrorCode = "reservation_overlap" ResourceNotFound ErrorErrorCode = "resource_not_found" Unauthenticated ErrorErrorCode = "unauthenticated" ValidationFailed ErrorErrorCode = "validation_failed" )
Defines values for ErrorErrorCode.
func (ErrorErrorCode) Valid ¶
func (e ErrorErrorCode) Valid() bool
Valid indicates whether the value is a known member of the ErrorErrorCode enum.
type GetReservation200JSONResponse ¶
type GetReservation200JSONResponse Reservation
func (GetReservation200JSONResponse) VisitGetReservationResponse ¶
func (response GetReservation200JSONResponse) VisitGetReservationResponse(w http.ResponseWriter) error
type GetReservation404JSONResponse ¶
type GetReservation404JSONResponse struct{ NotFoundJSONResponse }
func (GetReservation404JSONResponse) VisitGetReservationResponse ¶
func (response GetReservation404JSONResponse) VisitGetReservationResponse(w http.ResponseWriter) error
type GetReservation500JSONResponse ¶
type GetReservation500JSONResponse struct{ ServerErrorJSONResponse }
func (GetReservation500JSONResponse) VisitGetReservationResponse ¶
func (response GetReservation500JSONResponse) VisitGetReservationResponse(w http.ResponseWriter) error
type GetReservationParams ¶
type GetReservationParams struct {
// XCorrelationId Propagated unchanged through every downstream call, event, log line, and span.
XCorrelationId *CorrelationId `json:"X-Correlation-Id,omitempty"`
}
GetReservationParams defines parameters for GetReservation.
type GetReservationRequestObject ¶
type GetReservationRequestObject struct {
ReservationId Uuid `json:"reservation_id"`
Params GetReservationParams
}
type GetReservationResponse ¶
type GetReservationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Reservation
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ServerError
}
func ParseGetReservationResponse ¶
func ParseGetReservationResponse(rsp *http.Response) (*GetReservationResponse, error)
ParseGetReservationResponse parses an HTTP response from a GetReservationWithResponse call
func (GetReservationResponse) ContentType ¶
func (r GetReservationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetReservationResponse) GetBody ¶
func (r GetReservationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetReservationResponse) GetJSON200 ¶
func (r GetReservationResponse) GetJSON200() *Reservation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetReservationResponse) GetJSON404 ¶
func (r GetReservationResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetReservationResponse) GetJSON500 ¶
func (r GetReservationResponse) GetJSON500() *ServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetReservationResponse) Status ¶
func (r GetReservationResponse) Status() string
Status returns HTTPResponse.Status
func (GetReservationResponse) StatusCode ¶
func (r GetReservationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReservationResponseObject ¶
type GetReservationResponseObject interface {
VisitGetReservationResponse(w http.ResponseWriter) error
}
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type ListSlots200JSONResponse ¶
type ListSlots200JSONResponse struct {
// Busy Occupied windows (held or confirmed). Anything not listed is free
// as of this instant. Half-open intervals: [starts_at, ends_at).
Busy []struct {
EndsAt time.Time `json:"ends_at"`
StartsAt time.Time `json:"starts_at"`
} `json:"busy"`
// ResourceId UUIDv7, string-typed everywhere
//
// Examples: 01912d5a-7f3e-7c1a-9b2e-3f4a5b6c7d8e
ResourceId Uuid `json:"resource_id"`
}
func (ListSlots200JSONResponse) VisitListSlotsResponse ¶
func (response ListSlots200JSONResponse) VisitListSlotsResponse(w http.ResponseWriter) error
type ListSlots400JSONResponse ¶
type ListSlots400JSONResponse struct{ BadRequestJSONResponse }
func (ListSlots400JSONResponse) VisitListSlotsResponse ¶
func (response ListSlots400JSONResponse) VisitListSlotsResponse(w http.ResponseWriter) error
type ListSlots404JSONResponse ¶
type ListSlots404JSONResponse struct{ NotFoundJSONResponse }
func (ListSlots404JSONResponse) VisitListSlotsResponse ¶
func (response ListSlots404JSONResponse) VisitListSlotsResponse(w http.ResponseWriter) error
type ListSlots500JSONResponse ¶
type ListSlots500JSONResponse struct{ ServerErrorJSONResponse }
func (ListSlots500JSONResponse) VisitListSlotsResponse ¶
func (response ListSlots500JSONResponse) VisitListSlotsResponse(w http.ResponseWriter) error
type ListSlotsParams ¶
type ListSlotsParams struct {
// From Window start, inclusive (RFC 3339, UTC)
From time.Time `form:"from" json:"from"`
// To Window end, exclusive (RFC 3339, UTC). Must be after `from`.
To time.Time `form:"to" json:"to"`
// XCorrelationId Propagated unchanged through every downstream call, event, log line, and span.
XCorrelationId *CorrelationId `json:"X-Correlation-Id,omitempty"`
}
ListSlotsParams defines parameters for ListSlots.
type ListSlotsRequestObject ¶
type ListSlotsRequestObject struct {
ResourceId Uuid `json:"resource_id"`
Params ListSlotsParams
}
type ListSlotsResponse ¶
type ListSlotsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
// Busy Occupied windows (held or confirmed). Anything not listed is free
// as of this instant. Half-open intervals: [starts_at, ends_at).
Busy []struct {
EndsAt time.Time `json:"ends_at"`
StartsAt time.Time `json:"starts_at"`
} `json:"busy"`
// ResourceId UUIDv7, string-typed everywhere
//
// Examples: 01912d5a-7f3e-7c1a-9b2e-3f4a5b6c7d8e
ResourceId Uuid `json:"resource_id"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ServerError
}
func ParseListSlotsResponse ¶
func ParseListSlotsResponse(rsp *http.Response) (*ListSlotsResponse, error)
ParseListSlotsResponse parses an HTTP response from a ListSlotsWithResponse call
func (ListSlotsResponse) ContentType ¶
func (r ListSlotsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSlotsResponse) GetBody ¶
func (r ListSlotsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSlotsResponse) GetJSON200 ¶
func (r ListSlotsResponse) GetJSON200() *struct { // Busy Occupied windows (held or confirmed). Anything not listed is free // as of this instant. Half-open intervals: [starts_at, ends_at). Busy []struct { EndsAt time.Time `json:"ends_at"` StartsAt time.Time `json:"starts_at"` } `json:"busy"` // ResourceId UUIDv7, string-typed everywhere // // Examples: 01912d5a-7f3e-7c1a-9b2e-3f4a5b6c7d8e ResourceId Uuid `json:"resource_id"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSlotsResponse) GetJSON400 ¶
func (r ListSlotsResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSlotsResponse) GetJSON404 ¶
func (r ListSlotsResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSlotsResponse) GetJSON500 ¶
func (r ListSlotsResponse) GetJSON500() *ServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSlotsResponse) Status ¶
func (r ListSlotsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSlotsResponse) StatusCode ¶
func (r ListSlotsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSlotsResponseObject ¶
type ListSlotsResponseObject interface {
VisitListSlotsResponse(w http.ResponseWriter) error
}
type NotFoundJSONResponse ¶
type NotFoundJSONResponse Error
type ReleaseReason ¶
type ReleaseReason string
ReleaseReason defines model for ReleaseReason.
const ( BookingCancelled ReleaseReason = "booking_cancelled" HoldExpired ReleaseReason = "hold_expired" PaymentFailed ReleaseReason = "payment_failed" )
Defines values for ReleaseReason.
func (ReleaseReason) Valid ¶
func (e ReleaseReason) Valid() bool
Valid indicates whether the value is a known member of the ReleaseReason enum.
type ReleaseReservation200JSONResponse ¶
type ReleaseReservation200JSONResponse Reservation
func (ReleaseReservation200JSONResponse) VisitReleaseReservationResponse ¶
func (response ReleaseReservation200JSONResponse) VisitReleaseReservationResponse(w http.ResponseWriter) error
type ReleaseReservation404JSONResponse ¶
type ReleaseReservation404JSONResponse struct{ NotFoundJSONResponse }
func (ReleaseReservation404JSONResponse) VisitReleaseReservationResponse ¶
func (response ReleaseReservation404JSONResponse) VisitReleaseReservationResponse(w http.ResponseWriter) error
type ReleaseReservation500JSONResponse ¶
type ReleaseReservation500JSONResponse struct{ ServerErrorJSONResponse }
func (ReleaseReservation500JSONResponse) VisitReleaseReservationResponse ¶
func (response ReleaseReservation500JSONResponse) VisitReleaseReservationResponse(w http.ResponseWriter) error
type ReleaseReservationJSONBody ¶
type ReleaseReservationJSONBody struct {
Reason ReleaseReason `json:"reason"`
}
ReleaseReservationJSONBody defines parameters for ReleaseReservation.
type ReleaseReservationJSONRequestBody ¶
type ReleaseReservationJSONRequestBody ReleaseReservationJSONBody
ReleaseReservationJSONRequestBody defines body for ReleaseReservation for application/json ContentType.
type ReleaseReservationParams ¶
type ReleaseReservationParams struct {
// XCorrelationId Propagated unchanged through every downstream call, event, log line, and span.
XCorrelationId *CorrelationId `json:"X-Correlation-Id,omitempty"`
}
ReleaseReservationParams defines parameters for ReleaseReservation.
type ReleaseReservationRequestObject ¶
type ReleaseReservationRequestObject struct {
ReservationId Uuid `json:"reservation_id"`
Params ReleaseReservationParams
Body *ReleaseReservationJSONRequestBody
}
type ReleaseReservationResponse ¶
type ReleaseReservationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Reservation
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ServerError
}
func ParseReleaseReservationResponse ¶
func ParseReleaseReservationResponse(rsp *http.Response) (*ReleaseReservationResponse, error)
ParseReleaseReservationResponse parses an HTTP response from a ReleaseReservationWithResponse call
func (ReleaseReservationResponse) ContentType ¶
func (r ReleaseReservationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReleaseReservationResponse) GetBody ¶
func (r ReleaseReservationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReleaseReservationResponse) GetJSON200 ¶
func (r ReleaseReservationResponse) GetJSON200() *Reservation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ReleaseReservationResponse) GetJSON404 ¶
func (r ReleaseReservationResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ReleaseReservationResponse) GetJSON500 ¶
func (r ReleaseReservationResponse) GetJSON500() *ServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ReleaseReservationResponse) Status ¶
func (r ReleaseReservationResponse) Status() string
Status returns HTTPResponse.Status
func (ReleaseReservationResponse) StatusCode ¶
func (r ReleaseReservationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReleaseReservationResponseObject ¶
type ReleaseReservationResponseObject interface {
VisitReleaseReservationResponse(w http.ResponseWriter) error
}
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type Reservation ¶
type Reservation struct {
// BookingId UUIDv7, string-typed everywhere
//
// Examples: 01912d5a-7f3e-7c1a-9b2e-3f4a5b6c7d8e
BookingId Uuid `json:"booking_id"`
CreatedAt time.Time `json:"created_at"`
// EndsAt Exclusive bound of the reserved window
EndsAt time.Time `json:"ends_at"`
// ExpiresAt When a `held` reservation is auto-released. Null once confirmed or released.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Id UUIDv7, string-typed everywhere
//
// Examples: 01912d5a-7f3e-7c1a-9b2e-3f4a5b6c7d8e
Id Uuid `json:"id"`
ReleasedReason *ReleaseReason `json:"released_reason,omitempty"`
// ResourceId UUIDv7, string-typed everywhere
//
// Examples: 01912d5a-7f3e-7c1a-9b2e-3f4a5b6c7d8e
ResourceId Uuid `json:"resource_id"`
// StartsAt Inclusive bound of the reserved window
StartsAt time.Time `json:"starts_at"`
// Status held — window is locked, TTL running, awaiting payment
// confirmed — payment succeeded; permanent
// released — freed by compensation or TTL expiry; terminal
Status ReservationStatus `json:"status"`
UpdatedAt time.Time `json:"updated_at"`
}
Reservation defines model for Reservation.
type ReservationStatus ¶
type ReservationStatus string
ReservationStatus held — window is locked, TTL running, awaiting payment confirmed — payment succeeded; permanent released — freed by compensation or TTL expiry; terminal
const ( Confirmed ReservationStatus = "confirmed" Held ReservationStatus = "held" Released ReservationStatus = "released" )
Defines values for ReservationStatus.
func (ReservationStatus) Valid ¶
func (e ReservationStatus) Valid() bool
Valid indicates whether the value is a known member of the ReservationStatus enum.
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type ServerErrorJSONResponse ¶
type ServerErrorJSONResponse Error
type ServerInterface ¶
type ServerInterface interface {
// AvailabilityHealthz Liveness probe
// (GET /healthz)
AvailabilityHealthz(w http.ResponseWriter, r *http.Request)
// AvailabilityReadyz Readiness probe — checks database and broker connectivity
// (GET /readyz)
AvailabilityReadyz(w http.ResponseWriter, r *http.Request)
// CreateReservation Reserve a time window for a resource
// (POST /v1/reservations)
CreateReservation(w http.ResponseWriter, r *http.Request, params CreateReservationParams)
// GetReservation Get a reservation
// (GET /v1/reservations/{reservation_id})
GetReservation(w http.ResponseWriter, r *http.Request, reservationId Uuid, params GetReservationParams)
// ConfirmReservation Promote a held reservation to confirmed
// (POST /v1/reservations/{reservation_id}/actions/confirm)
ConfirmReservation(w http.ResponseWriter, r *http.Request, reservationId Uuid, params ConfirmReservationParams)
// ReleaseReservation Release a reservation, freeing the window
// (POST /v1/reservations/{reservation_id}/actions/release)
ReleaseReservation(w http.ResponseWriter, r *http.Request, reservationId Uuid, params ReleaseReservationParams)
// ListSlots Query free/busy windows for a resource
// (GET /v1/resources/{resource_id}/slots)
ListSlots(w http.ResponseWriter, r *http.Request, resourceId Uuid, params ListSlotsParams)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AvailabilityHealthz ¶
func (siw *ServerInterfaceWrapper) AvailabilityHealthz(w http.ResponseWriter, r *http.Request)
AvailabilityHealthz operation middleware
func (*ServerInterfaceWrapper) AvailabilityReadyz ¶
func (siw *ServerInterfaceWrapper) AvailabilityReadyz(w http.ResponseWriter, r *http.Request)
AvailabilityReadyz operation middleware
func (*ServerInterfaceWrapper) ConfirmReservation ¶
func (siw *ServerInterfaceWrapper) ConfirmReservation(w http.ResponseWriter, r *http.Request)
ConfirmReservation operation middleware
func (*ServerInterfaceWrapper) CreateReservation ¶
func (siw *ServerInterfaceWrapper) CreateReservation(w http.ResponseWriter, r *http.Request)
CreateReservation operation middleware
func (*ServerInterfaceWrapper) GetReservation ¶
func (siw *ServerInterfaceWrapper) GetReservation(w http.ResponseWriter, r *http.Request)
GetReservation operation middleware
func (*ServerInterfaceWrapper) ListSlots ¶
func (siw *ServerInterfaceWrapper) ListSlots(w http.ResponseWriter, r *http.Request)
ListSlots operation middleware
func (*ServerInterfaceWrapper) ReleaseReservation ¶
func (siw *ServerInterfaceWrapper) ReleaseReservation(w http.ResponseWriter, r *http.Request)
ReleaseReservation operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// AvailabilityHealthz Liveness probe
// (GET /healthz)
AvailabilityHealthz(ctx context.Context, request AvailabilityHealthzRequestObject) (AvailabilityHealthzResponseObject, error)
// AvailabilityReadyz Readiness probe — checks database and broker connectivity
// (GET /readyz)
AvailabilityReadyz(ctx context.Context, request AvailabilityReadyzRequestObject) (AvailabilityReadyzResponseObject, error)
// CreateReservation Reserve a time window for a resource
// (POST /v1/reservations)
CreateReservation(ctx context.Context, request CreateReservationRequestObject) (CreateReservationResponseObject, error)
// GetReservation Get a reservation
// (GET /v1/reservations/{reservation_id})
GetReservation(ctx context.Context, request GetReservationRequestObject) (GetReservationResponseObject, error)
// ConfirmReservation Promote a held reservation to confirmed
// (POST /v1/reservations/{reservation_id}/actions/confirm)
ConfirmReservation(ctx context.Context, request ConfirmReservationRequestObject) (ConfirmReservationResponseObject, error)
// ReleaseReservation Release a reservation, freeing the window
// (POST /v1/reservations/{reservation_id}/actions/release)
ReleaseReservation(ctx context.Context, request ReleaseReservationRequestObject) (ReleaseReservationResponseObject, error)
// ListSlots Query free/busy windows for a resource
// (GET /v1/resources/{resource_id}/slots)
ListSlots(ctx context.Context, request ListSlotsRequestObject) (ListSlotsResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type Uuid ¶
type Uuid = openapi_types.UUID
Uuid UUIDv7, string-typed everywhere
Examples: 01912d5a-7f3e-7c1a-9b2e-3f4a5b6c7d8e