Documentation
¶
Overview ¶
Package publicurlusagev1 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 NewIngestPublicURLUsageBucketReportsRequest(server string, body IngestPublicURLUsageBucketReportsJSONRequestBody) (*http.Request, error)
- func NewIngestPublicURLUsageBucketReportsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type BatchProblemCode
- type BatchResult
- type Client
- func (c *Client) IngestPublicURLUsageBucketReports(ctx context.Context, body IngestPublicURLUsageBucketReportsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) IngestPublicURLUsageBucketReportsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) IngestPublicURLUsageBucketReportsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IngestPublicURLUsageBucketReportsResponse, error)
- func (c *ClientWithResponses) IngestPublicURLUsageBucketReportsWithResponse(ctx context.Context, body IngestPublicURLUsageBucketReportsJSONRequestBody, ...) (*IngestPublicURLUsageBucketReportsResponse, error)
- type ClientWithResponsesInterface
- type DurationHistogram
- type HttpRequestDoer
- type IdentityID
- type IngestPublicURLUsageBucketReportsJSONRequestBody
- type IngestPublicURLUsageBucketReportsResponse
- func (r IngestPublicURLUsageBucketReportsResponse) ContentType() string
- func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON400() *Problem
- func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON401() *Problem
- func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON404() *Problem
- func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON409() *Problem
- func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON413() *Problem
- func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON415() *Problem
- func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSONDefault() *Problem
- func (r IngestPublicURLUsageBucketReportsResponse) GetBody() []byte
- func (r IngestPublicURLUsageBucketReportsResponse) GetJSON200() *PublicURLUsageBucketReportBatchResponse
- func (r IngestPublicURLUsageBucketReportsResponse) Status() string
- func (r IngestPublicURLUsageBucketReportsResponse) StatusCode() int
- type InvalidParamFormatError
- type MiddlewareFunc
- type PositiveInteger
- type Problem
- type ProblemCode
- type PublicURLID
- type PublicURLUsageBucketReport
- type PublicURLUsageBucketReportBatch
- type PublicURLUsageBucketReportBatchResponse
- type PublicURLUsageBucketReportResolution
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ResourceID
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- type StdHTTPServerOptions
- type TeamID
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UnsignedInteger
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 NewIngestPublicURLUsageBucketReportsRequest ¶
func NewIngestPublicURLUsageBucketReportsRequest(server string, body IngestPublicURLUsageBucketReportsJSONRequestBody) (*http.Request, error)
NewIngestPublicURLUsageBucketReportsRequest calls the generic IngestPublicURLUsageBucketReports builder with application/json body
func NewIngestPublicURLUsageBucketReportsRequestWithBody ¶
func NewIngestPublicURLUsageBucketReportsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIngestPublicURLUsageBucketReportsRequestWithBody constructs an http.Request for the IngestPublicURLUsageBucketReports method, with any body, and a specified content type
Types ¶
type BatchProblemCode ¶
type BatchProblemCode string
BatchProblemCode defines model for BatchProblemCode.
const ( BatchProblemCodeIdempotencyConflict BatchProblemCode = "idempotency_conflict" BatchProblemCodeInternal BatchProblemCode = "internal" BatchProblemCodeInvalidArgument BatchProblemCode = "invalid_argument" BatchProblemCodeNotFound BatchProblemCode = "not_found" BatchProblemCodeStatusConflict BatchProblemCode = "status_conflict" )
Defines values for BatchProblemCode.
func (BatchProblemCode) Valid ¶
func (e BatchProblemCode) Valid() bool
Valid indicates whether the value is a known member of the BatchProblemCode enum.
type BatchResult ¶
type BatchResult struct {
Accepted bool `json:"accepted"`
Code *BatchProblemCode `json:"code,omitempty"`
ItemId string `json:"item_id"`
}
BatchResult defines model for BatchResult.
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) IngestPublicURLUsageBucketReports ¶
func (c *Client) IngestPublicURLUsageBucketReports(ctx context.Context, body IngestPublicURLUsageBucketReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestPublicURLUsageBucketReports Ingest public URL usage bucket reports
Takes a body of the `application/json` content type.
Corresponds with POST /v1/public-urls/usage-bucket-reports (the `IngestPublicURLUsageBucketReports` operationId).
func (*Client) IngestPublicURLUsageBucketReportsWithBody ¶
func (c *Client) IngestPublicURLUsageBucketReportsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestPublicURLUsageBucketReportsWithBody Ingest public URL usage bucket reports
Takes any type of body and a specified content type.
Corresponds with POST /v1/public-urls/usage-bucket-reports (the `IngestPublicURLUsageBucketReports` operationId).
type ClientInterface ¶
type ClientInterface interface {
// IngestPublicURLUsageBucketReportsWithBody Ingest public URL usage bucket reports
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v1/public-urls/usage-bucket-reports (the `IngestPublicURLUsageBucketReports` operationId).
IngestPublicURLUsageBucketReportsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// IngestPublicURLUsageBucketReports Ingest public URL usage bucket reports
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v1/public-urls/usage-bucket-reports (the `IngestPublicURLUsageBucketReports` operationId).
IngestPublicURLUsageBucketReports(ctx context.Context, body IngestPublicURLUsageBucketReportsJSONRequestBody, 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) IngestPublicURLUsageBucketReportsWithBodyWithResponse ¶
func (c *ClientWithResponses) IngestPublicURLUsageBucketReportsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestPublicURLUsageBucketReportsResponse, error)
IngestPublicURLUsageBucketReportsWithBodyWithResponse Ingest public URL usage bucket reports
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/public-urls/usage-bucket-reports (the `IngestPublicURLUsageBucketReports` operationId).
func (*ClientWithResponses) IngestPublicURLUsageBucketReportsWithResponse ¶
func (c *ClientWithResponses) IngestPublicURLUsageBucketReportsWithResponse(ctx context.Context, body IngestPublicURLUsageBucketReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestPublicURLUsageBucketReportsResponse, error)
IngestPublicURLUsageBucketReportsWithResponse Ingest public URL usage bucket reports
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/public-urls/usage-bucket-reports (the `IngestPublicURLUsageBucketReports` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// IngestPublicURLUsageBucketReportsWithBodyWithResponse Ingest public URL usage bucket reports
//
// 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/public-urls/usage-bucket-reports (the `IngestPublicURLUsageBucketReports` operationId).
IngestPublicURLUsageBucketReportsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestPublicURLUsageBucketReportsResponse, error)
// IngestPublicURLUsageBucketReportsWithResponse Ingest public URL usage bucket reports
//
// 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/public-urls/usage-bucket-reports (the `IngestPublicURLUsageBucketReports` operationId).
IngestPublicURLUsageBucketReportsWithResponse(ctx context.Context, body IngestPublicURLUsageBucketReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestPublicURLUsageBucketReportsResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DurationHistogram ¶
type DurationHistogram struct {
Count PositiveInteger `json:"count"`
CumulativeCounts []UnsignedInteger `json:"cumulative_counts"`
SumNanoseconds UnsignedInteger `json:"sum_nanoseconds"`
}
DurationHistogram A cumulative duration histogram. cumulative_counts contains these fixed inclusive upper bounds, in order: 1ms, 5ms, 10ms, 25ms, 50ms, 100ms, 250ms, 500ms, 1s, 2.5s, 5s, 10s, 30s, 1m, 5m, 15m, 1h, 6h, 24h, 3d, 7d, and +Inf.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IngestPublicURLUsageBucketReportsJSONRequestBody ¶
type IngestPublicURLUsageBucketReportsJSONRequestBody = PublicURLUsageBucketReportBatch
IngestPublicURLUsageBucketReportsJSONRequestBody defines body for IngestPublicURLUsageBucketReports for application/json ContentType.
type IngestPublicURLUsageBucketReportsResponse ¶
type IngestPublicURLUsageBucketReportsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PublicURLUsageBucketReportBatchResponse
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *Problem
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Problem
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *Problem
// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
ApplicationproblemJSON409 *Problem
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *Problem
// ApplicationproblemJSON415 the response for an HTTP 415 `application/problem+json` response
ApplicationproblemJSON415 *Problem
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *Problem
}
func ParseIngestPublicURLUsageBucketReportsResponse ¶
func ParseIngestPublicURLUsageBucketReportsResponse(rsp *http.Response) (*IngestPublicURLUsageBucketReportsResponse, error)
ParseIngestPublicURLUsageBucketReportsResponse parses an HTTP response from a IngestPublicURLUsageBucketReportsWithResponse call
func (IngestPublicURLUsageBucketReportsResponse) ContentType ¶
func (r IngestPublicURLUsageBucketReportsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON400 ¶
func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON400() *Problem
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON401 ¶
func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON401() *Problem
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON404 ¶
func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON404() *Problem
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON409 ¶
func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON409() *Problem
GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response
func (IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON413 ¶
func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON413() *Problem
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON415 ¶
func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSON415() *Problem
GetApplicationproblemJSON415 returns the response for an HTTP 415 `application/problem+json` response
func (IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSONDefault ¶
func (r IngestPublicURLUsageBucketReportsResponse) GetApplicationproblemJSONDefault() *Problem
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (IngestPublicURLUsageBucketReportsResponse) GetBody ¶
func (r IngestPublicURLUsageBucketReportsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (IngestPublicURLUsageBucketReportsResponse) GetJSON200 ¶
func (r IngestPublicURLUsageBucketReportsResponse) GetJSON200() *PublicURLUsageBucketReportBatchResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (IngestPublicURLUsageBucketReportsResponse) Status ¶
func (r IngestPublicURLUsageBucketReportsResponse) Status() string
Status returns HTTPResponse.Status
func (IngestPublicURLUsageBucketReportsResponse) StatusCode ¶
func (r IngestPublicURLUsageBucketReportsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type PositiveInteger ¶
type PositiveInteger = string
PositiveInteger defines model for PositiveInteger.
type Problem ¶
type Problem struct {
Code ProblemCode `json:"code"`
Details map[string]interface{} `json:"details"`
RequestId string `json:"request_id"`
Status int `json:"status"`
Title string `json:"title"`
Type string `json:"type"`
}
Problem defines model for Problem.
type ProblemCode ¶
type ProblemCode string
ProblemCode defines model for Problem.Code.
const ( ProblemCodeIdempotencyConflict ProblemCode = "idempotency_conflict" ProblemCodeInternal ProblemCode = "internal" ProblemCodeInvalidArgument ProblemCode = "invalid_argument" ProblemCodeNotFound ProblemCode = "not_found" ProblemCodeStatusConflict ProblemCode = "status_conflict" ProblemCodeUnauthenticated ProblemCode = "unauthenticated" )
Defines values for ProblemCode.
func (ProblemCode) Valid ¶
func (e ProblemCode) Valid() bool
Valid indicates whether the value is a known member of the ProblemCode enum.
type PublicURLUsageBucketReport ¶
type PublicURLUsageBucketReport struct {
// ActingIdentityId Acting identity recorded when this publish run number was created.
ActingIdentityId IdentityID `json:"acting_identity_id"`
BucketStart time.Time `json:"bucket_start"`
// CapacityDenials Matched attempts rejected by the public URL connection limit.
CapacityDenials UnsignedInteger `json:"capacity_denials"`
// Complete Whether accounting covers the entire bucket without a missing ingress report.
Complete bool `json:"complete"`
// ConnectionAttempts Connections counted after a public URL match and before policy and capacity checks.
ConnectionAttempts UnsignedInteger `json:"connection_attempts"`
// ConnectionNanoseconds Elapsed time for successful streams, divided among the buckets in which the time passed.
ConnectionNanoseconds UnsignedInteger `json:"connection_nanoseconds"`
// EgressBytes Bytes successfully forwarded from publishers to visitors.
EgressBytes UnsignedInteger `json:"egress_bytes"`
// IngressBytes Bytes successfully forwarded from visitors to publishers.
IngressBytes UnsignedInteger `json:"ingress_bytes"`
ItemId string `json:"item_id"`
// ObservedThrough Latest time covered by this bucket. Equals the bucket end when complete is true.
ObservedThrough time.Time `json:"observed_through"`
// PolicyDenials Matched attempts rejected by public URL access policy.
PolicyDenials UnsignedInteger `json:"policy_denials"`
PublicUrlId PublicURLID `json:"public_url_id"`
// PublishRunNumber PublicURL version measured by this report.
PublishRunNumber PositiveInteger `json:"publish_run_number"`
ReportRevision PositiveInteger `json:"report_revision"`
Resolution PublicURLUsageBucketReportResolution `json:"resolution"`
// SuccessfulConnectionDuration Total time for a successful visitor stream. The value is recorded when the stream closes. The field is absent, rather than zero, when the bucket has no observations.
SuccessfulConnectionDuration *DurationHistogram `json:"successful_connection_duration,omitempty"`
// SuccessfulStreams Visitor streams that entered bidirectional forwarding.
SuccessfulStreams UnsignedInteger `json:"successful_streams"`
// TeamId Team recorded when this publish run number was created.
TeamId TeamID `json:"team_id"`
// TimeToFirstPublisherByte Time from a public URL match until the first publisher byte reaches the visitor. The value is recorded when that byte is written. The field is absent, rather than zero, when the bucket has no observations.
TimeToFirstPublisherByte *DurationHistogram `json:"time_to_first_publisher_byte,omitempty"`
// VisitorNetworkEstimate Precision-12 HyperLogLog estimate of distinct visitor networks for this public URL and bucket. All publish run numbers share the same sketch, so do not add estimates from reports for the same public URL and bucket.
VisitorNetworkEstimate UnsignedInteger `json:"visitor_network_estimate"`
// VisitorNetworkHll Versioned precision-12 HyperLogLog data. After base64 decoding, the bytes start with version 1, precision 12, and an encoding byte. Sparse encoding 0 then contains a big-endian uint16 entry count and sorted entries of a big-endian uint16 register index followed by a uint8 value. Dense encoding 1 contains 4096 uint8 registers. Inputs are visitor IPv4 /32 or IPv6 /64 networks HMACed with a public-URL-scoped secret that changes daily. No source address is included. When combining reports, merge each register by its maximum value instead of adding estimates.
VisitorNetworkHll []byte `json:"visitor_network_hll"`
// VisitorStreamOpenFailures Attempts for which opening a visitor stream failed.
VisitorStreamOpenFailures UnsignedInteger `json:"visitor_stream_open_failures"`
// VisitorStreamOpenLatency Time taken to open a visitor stream, including failed attempts. The value is recorded when the attempt ends. The field is absent, rather than zero, when the bucket has no observations.
VisitorStreamOpenLatency *DurationHistogram `json:"visitor_stream_open_latency,omitempty"`
}
PublicURLUsageBucketReport defines model for PublicURLUsageBucketReport.
type PublicURLUsageBucketReportBatch ¶
type PublicURLUsageBucketReportBatch struct {
Items []PublicURLUsageBucketReport `json:"items"`
}
PublicURLUsageBucketReportBatch defines model for PublicURLUsageBucketReportBatch.
type PublicURLUsageBucketReportBatchResponse ¶
type PublicURLUsageBucketReportBatchResponse struct {
Results []BatchResult `json:"results"`
}
PublicURLUsageBucketReportBatchResponse defines model for PublicURLUsageBucketReportBatchResponse.
type PublicURLUsageBucketReportResolution ¶
type PublicURLUsageBucketReportResolution string
PublicURLUsageBucketReportResolution defines model for PublicURLUsageBucketReport.Resolution.
const ( Hour PublicURLUsageBucketReportResolution = "hour" Minute PublicURLUsageBucketReportResolution = "minute" )
Defines values for PublicURLUsageBucketReportResolution.
func (PublicURLUsageBucketReportResolution) Valid ¶
func (e PublicURLUsageBucketReportResolution) Valid() bool
Valid indicates whether the value is a known member of the PublicURLUsageBucketReportResolution enum.
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 ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// IngestPublicURLUsageBucketReports Ingest public URL usage bucket reports
// (POST /v1/public-urls/usage-bucket-reports)
IngestPublicURLUsageBucketReports(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
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) IngestPublicURLUsageBucketReports ¶
func (siw *ServerInterfaceWrapper) IngestPublicURLUsageBucketReports(w http.ResponseWriter, r *http.Request)
IngestPublicURLUsageBucketReports operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
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 UnsignedInteger ¶
type UnsignedInteger = string
UnsignedInteger defines model for UnsignedInteger.