Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AnyContentTypeBinaryStringSchemaDefaultDef
- type AnyContentTypeBinaryStringSchemaDefaultDefStatusCode
- func (s AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) GetResponse() AnyContentTypeBinaryStringSchemaDefaultDef
- func (s AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) GetStatusCode() int
- func (s *AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) SetResponse(val AnyContentTypeBinaryStringSchemaDefaultDef)
- func (s *AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) SetStatusCode(val int)
- type AnyContentTypeBinaryStringSchemaOK
- type Client
- func (c *Client) AnyContentTypeBinaryStringSchema(ctx context.Context) (res AnyContentTypeBinaryStringSchemaOK, err error)
- func (c *Client) AnyContentTypeBinaryStringSchemaDefault(ctx context.Context) (res AnyContentTypeBinaryStringSchemaDefaultDefStatusCode, err error)
- func (c *Client) Combined(ctx context.Context, params CombinedParams) (res CombinedRes, err error)
- func (c *Client) Headers200(ctx context.Context) (res Headers200OK, err error)
- func (c *Client) HeadersCombined(ctx context.Context, params HeadersCombinedParams) (res HeadersCombinedRes, err error)
- func (c *Client) HeadersDefault(ctx context.Context) (res HeadersDefaultDef, err error)
- func (c *Client) HeadersPattern(ctx context.Context) (res HeadersPattern4XX, err error)
- func (c *Client) IntersectPatternCode(ctx context.Context, params IntersectPatternCodeParams) (res IntersectPatternCodeRes, err error)
- func (c *Client) MultipleGenericResponses(ctx context.Context) (res MultipleGenericResponsesRes, err error)
- func (c *Client) OctetStreamBinaryStringSchema(ctx context.Context) (res OctetStreamBinaryStringSchemaOK, err error)
- func (c *Client) OctetStreamEmptySchema(ctx context.Context) (res OctetStreamEmptySchemaOK, err error)
- func (c *Client) TextPlainBinaryStringSchema(ctx context.Context) (res TextPlainBinaryStringSchemaOK, err error)
- type Combined2XXStatusCode
- type Combined5XXStatusCode
- type CombinedDefStatusCode
- type CombinedOK
- type CombinedParams
- type CombinedRes
- type CombinedType
- type ErrorHandler
- type Handler
- type Headers200OK
- type HeadersCombined4XX
- type HeadersCombinedDef
- type HeadersCombinedOK
- type HeadersCombinedParams
- type HeadersCombinedRes
- type HeadersCombinedType
- type HeadersDefaultDef
- type HeadersPattern4XX
- type IntersectPatternCode2XXStatusCode
- type IntersectPatternCodeOKApplicationJSON
- func (s *IntersectPatternCodeOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s IntersectPatternCodeOKApplicationJSON) Encode(e *jx.Encoder)
- func (s IntersectPatternCodeOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *IntersectPatternCodeOKApplicationJSON) UnmarshalJSON(data []byte) error
- type IntersectPatternCodeParams
- type IntersectPatternCodeRes
- type Middleware
- type MultipleGenericResponsesRes
- type NilInt
- func (o *NilInt) Decode(d *jx.Decoder) error
- func (o NilInt) Encode(e *jx.Encoder)
- func (o NilInt) Get() (v int, ok bool)
- func (o NilInt) IsNull() bool
- func (s NilInt) MarshalJSON() ([]byte, error)
- func (o NilInt) Or(d int) int
- func (o *NilInt) SetTo(v int)
- func (s *NilInt) UnmarshalJSON(data []byte) error
- type NilString
- func (o *NilString) Decode(d *jx.Decoder) error
- func (o NilString) Encode(e *jx.Encoder)
- func (o NilString) Get() (v string, ok bool)
- func (o NilString) IsNull() bool
- func (s NilString) MarshalJSON() ([]byte, error)
- func (o NilString) Or(d string) string
- func (o *NilString) SetTo(v string)
- func (s *NilString) UnmarshalJSON(data []byte) error
- type OctetStreamBinaryStringSchemaOK
- type OctetStreamEmptySchemaOK
- type Option
- func WithClient(client ht.Client) Option
- func WithErrorHandler(h ErrorHandler) Option
- func WithMaxMultipartMemory(max int64) Option
- func WithMeterProvider(provider metric.MeterProvider) Option
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option
- func WithMiddleware(m ...Middleware) Option
- func WithNotFound(notFound http.HandlerFunc) Option
- func WithPathPrefix(prefix string) Option
- func WithTracerProvider(provider trace.TracerProvider) Option
- type Route
- type Server
- type TextPlainBinaryStringSchemaOK
- type UnimplementedHandler
- func (UnimplementedHandler) AnyContentTypeBinaryStringSchema(ctx context.Context) (r AnyContentTypeBinaryStringSchemaOK, _ error)
- func (UnimplementedHandler) AnyContentTypeBinaryStringSchemaDefault(ctx context.Context) (r AnyContentTypeBinaryStringSchemaDefaultDefStatusCode, _ error)
- func (UnimplementedHandler) Combined(ctx context.Context, params CombinedParams) (r CombinedRes, _ error)
- func (UnimplementedHandler) Headers200(ctx context.Context) (r Headers200OK, _ error)
- func (UnimplementedHandler) HeadersCombined(ctx context.Context, params HeadersCombinedParams) (r HeadersCombinedRes, _ error)
- func (UnimplementedHandler) HeadersDefault(ctx context.Context) (r HeadersDefaultDef, _ error)
- func (UnimplementedHandler) HeadersPattern(ctx context.Context) (r HeadersPattern4XX, _ error)
- func (UnimplementedHandler) IntersectPatternCode(ctx context.Context, params IntersectPatternCodeParams) (r IntersectPatternCodeRes, _ error)
- func (UnimplementedHandler) MultipleGenericResponses(ctx context.Context) (r MultipleGenericResponsesRes, _ error)
- func (UnimplementedHandler) OctetStreamBinaryStringSchema(ctx context.Context) (r OctetStreamBinaryStringSchemaOK, _ error)
- func (UnimplementedHandler) OctetStreamEmptySchema(ctx context.Context) (r OctetStreamEmptySchemaOK, _ error)
- func (UnimplementedHandler) TextPlainBinaryStringSchema(ctx context.Context) (r TextPlainBinaryStringSchemaOK, _ error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnyContentTypeBinaryStringSchemaDefaultDefStatusCode ¶
type AnyContentTypeBinaryStringSchemaDefaultDefStatusCode struct { StatusCode int Response AnyContentTypeBinaryStringSchemaDefaultDef }
AnyContentTypeBinaryStringSchemaDefaultDefStatusCode wraps AnyContentTypeBinaryStringSchemaDefaultDef with StatusCode.
func (AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) GetResponse ¶
func (s AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) GetResponse() AnyContentTypeBinaryStringSchemaDefaultDef
GetResponse returns the value of Response.
func (AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) GetStatusCode ¶
func (s AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) SetResponse ¶
func (s *AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) SetResponse(val AnyContentTypeBinaryStringSchemaDefaultDef)
SetResponse sets the value of Response.
func (*AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) SetStatusCode ¶
func (s *AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func (*Client) AnyContentTypeBinaryStringSchema ¶
func (c *Client) AnyContentTypeBinaryStringSchema(ctx context.Context) (res AnyContentTypeBinaryStringSchemaOK, err error)
AnyContentTypeBinaryStringSchema invokes anyContentTypeBinaryStringSchema operation.
GET /anyContentTypeBinaryStringSchema
func (*Client) AnyContentTypeBinaryStringSchemaDefault ¶
func (c *Client) AnyContentTypeBinaryStringSchemaDefault(ctx context.Context) (res AnyContentTypeBinaryStringSchemaDefaultDefStatusCode, err error)
AnyContentTypeBinaryStringSchemaDefault invokes anyContentTypeBinaryStringSchemaDefault operation.
GET /anyContentTypeBinaryStringSchemaDefault
func (*Client) Combined ¶
func (c *Client) Combined(ctx context.Context, params CombinedParams) (res CombinedRes, err error)
Combined invokes combined operation.
GET /combined
func (*Client) Headers200 ¶
func (c *Client) Headers200(ctx context.Context) (res Headers200OK, err error)
Headers200 invokes headers200 operation.
GET /headers200
func (*Client) HeadersCombined ¶
func (c *Client) HeadersCombined(ctx context.Context, params HeadersCombinedParams) (res HeadersCombinedRes, err error)
HeadersCombined invokes headersCombined operation.
GET /headersCombined
func (*Client) HeadersDefault ¶
func (c *Client) HeadersDefault(ctx context.Context) (res HeadersDefaultDef, err error)
HeadersDefault invokes headersDefault operation.
GET /headersDefault
func (*Client) HeadersPattern ¶
func (c *Client) HeadersPattern(ctx context.Context) (res HeadersPattern4XX, err error)
HeadersPattern invokes headersPattern operation.
GET /headersPattern
func (*Client) IntersectPatternCode ¶
func (c *Client) IntersectPatternCode(ctx context.Context, params IntersectPatternCodeParams) (res IntersectPatternCodeRes, err error)
IntersectPatternCode invokes intersectPatternCode operation.
If a response is defined using an explicit code, the explicit code definition takes precedence over the range definition for that code.
GET /intersectPatternCode
func (*Client) MultipleGenericResponses ¶
func (c *Client) MultipleGenericResponses(ctx context.Context) (res MultipleGenericResponsesRes, err error)
MultipleGenericResponses invokes multipleGenericResponses operation.
GET /multipleGenericResponses
func (*Client) OctetStreamBinaryStringSchema ¶
func (c *Client) OctetStreamBinaryStringSchema(ctx context.Context) (res OctetStreamBinaryStringSchemaOK, err error)
OctetStreamBinaryStringSchema invokes octetStreamBinaryStringSchema operation.
GET /octetStreamBinaryStringSchema
func (*Client) OctetStreamEmptySchema ¶
func (c *Client) OctetStreamEmptySchema(ctx context.Context) (res OctetStreamEmptySchemaOK, err error)
OctetStreamEmptySchema invokes octetStreamEmptySchema operation.
GET /octetStreamEmptySchema
func (*Client) TextPlainBinaryStringSchema ¶
func (c *Client) TextPlainBinaryStringSchema(ctx context.Context) (res TextPlainBinaryStringSchemaOK, err error)
TextPlainBinaryStringSchema invokes textPlainBinaryStringSchema operation.
GET /textPlainBinaryStringSchema
type Combined2XXStatusCode ¶
Combined2XXStatusCode wraps int with StatusCode.
func (Combined2XXStatusCode) GetResponse ¶
func (s Combined2XXStatusCode) GetResponse() int
GetResponse returns the value of Response.
func (Combined2XXStatusCode) GetStatusCode ¶
func (s Combined2XXStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*Combined2XXStatusCode) SetResponse ¶
func (s *Combined2XXStatusCode) SetResponse(val int)
SetResponse sets the value of Response.
func (*Combined2XXStatusCode) SetStatusCode ¶
func (s *Combined2XXStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type Combined5XXStatusCode ¶
Combined5XXStatusCode wraps bool with StatusCode.
func (Combined5XXStatusCode) GetResponse ¶
func (s Combined5XXStatusCode) GetResponse() bool
GetResponse returns the value of Response.
func (Combined5XXStatusCode) GetStatusCode ¶
func (s Combined5XXStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*Combined5XXStatusCode) SetResponse ¶
func (s *Combined5XXStatusCode) SetResponse(val bool)
SetResponse sets the value of Response.
func (*Combined5XXStatusCode) SetStatusCode ¶
func (s *Combined5XXStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type CombinedDefStatusCode ¶
CombinedDefStatusCode wraps []string with StatusCode.
func (CombinedDefStatusCode) GetResponse ¶
func (s CombinedDefStatusCode) GetResponse() []string
GetResponse returns the value of Response.
func (CombinedDefStatusCode) GetStatusCode ¶
func (s CombinedDefStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*CombinedDefStatusCode) SetResponse ¶
func (s *CombinedDefStatusCode) SetResponse(val []string)
SetResponse sets the value of Response.
func (*CombinedDefStatusCode) SetStatusCode ¶
func (s *CombinedDefStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
func (CombinedDefStatusCode) Validate ¶
func (s CombinedDefStatusCode) Validate() error
type CombinedOK ¶
type CombinedOK struct {
Ok string `json:"ok"`
}
func (*CombinedOK) Decode ¶
func (s *CombinedOK) Decode(d *jx.Decoder) error
Decode decodes CombinedOK from json.
func (CombinedOK) Encode ¶
func (s CombinedOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CombinedOK) MarshalJSON ¶
func (s CombinedOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CombinedOK) UnmarshalJSON ¶
func (s *CombinedOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CombinedParams ¶
type CombinedParams struct {
Type CombinedType
}
CombinedParams is parameters of combined operation.
type CombinedRes ¶
type CombinedRes interface {
// contains filtered or unexported methods
}
type CombinedType ¶
type CombinedType string
const ( CombinedType200 CombinedType = "200" CombinedType2XX CombinedType = "2XX" CombinedType5XX CombinedType = "5XX" CombinedTypeDefault CombinedType = "default" )
func (CombinedType) Validate ¶
func (s CombinedType) Validate() error
type Handler ¶
type Handler interface { // AnyContentTypeBinaryStringSchema implements anyContentTypeBinaryStringSchema operation. // // GET /anyContentTypeBinaryStringSchema AnyContentTypeBinaryStringSchema(ctx context.Context) (AnyContentTypeBinaryStringSchemaOK, error) // AnyContentTypeBinaryStringSchemaDefault implements anyContentTypeBinaryStringSchemaDefault operation. // // GET /anyContentTypeBinaryStringSchemaDefault AnyContentTypeBinaryStringSchemaDefault(ctx context.Context) (AnyContentTypeBinaryStringSchemaDefaultDefStatusCode, error) // Combined implements combined operation. // // GET /combined Combined(ctx context.Context, params CombinedParams) (CombinedRes, error) // Headers200 implements headers200 operation. // // GET /headers200 Headers200(ctx context.Context) (Headers200OK, error) // HeadersCombined implements headersCombined operation. // // GET /headersCombined HeadersCombined(ctx context.Context, params HeadersCombinedParams) (HeadersCombinedRes, error) // HeadersDefault implements headersDefault operation. // // GET /headersDefault HeadersDefault(ctx context.Context) (HeadersDefaultDef, error) // HeadersPattern implements headersPattern operation. // // GET /headersPattern HeadersPattern(ctx context.Context) (HeadersPattern4XX, error) // IntersectPatternCode implements intersectPatternCode operation. // // If a response is defined using an explicit code, the explicit code definition takes precedence // over the range definition for that code. // // GET /intersectPatternCode IntersectPatternCode(ctx context.Context, params IntersectPatternCodeParams) (IntersectPatternCodeRes, error) // MultipleGenericResponses implements multipleGenericResponses operation. // // GET /multipleGenericResponses MultipleGenericResponses(ctx context.Context) (MultipleGenericResponsesRes, error) // OctetStreamBinaryStringSchema implements octetStreamBinaryStringSchema operation. // // GET /octetStreamBinaryStringSchema OctetStreamBinaryStringSchema(ctx context.Context) (OctetStreamBinaryStringSchemaOK, error) // OctetStreamEmptySchema implements octetStreamEmptySchema operation. // // GET /octetStreamEmptySchema OctetStreamEmptySchema(ctx context.Context) (OctetStreamEmptySchemaOK, error) // TextPlainBinaryStringSchema implements textPlainBinaryStringSchema operation. // // GET /textPlainBinaryStringSchema TextPlainBinaryStringSchema(ctx context.Context) (TextPlainBinaryStringSchemaOK, error) }
Handler handles operations described by OpenAPI v3 specification.
type Headers200OK ¶
type Headers200OK struct {
TestHeader string
}
Headers200OK is response for Headers200 operation.
func (Headers200OK) GetTestHeader ¶
func (s Headers200OK) GetTestHeader() string
GetTestHeader returns the value of TestHeader.
func (*Headers200OK) SetTestHeader ¶
func (s *Headers200OK) SetTestHeader(val string)
SetTestHeader sets the value of TestHeader.
type HeadersCombined4XX ¶
HeadersCombined4XX is 4XX pattern response for HeadersCombined operation.
func (HeadersCombined4XX) GetStatusCode ¶
func (s HeadersCombined4XX) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (HeadersCombined4XX) GetTestHeader ¶
func (s HeadersCombined4XX) GetTestHeader() string
GetTestHeader returns the value of TestHeader.
func (*HeadersCombined4XX) SetStatusCode ¶
func (s *HeadersCombined4XX) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
func (*HeadersCombined4XX) SetTestHeader ¶
func (s *HeadersCombined4XX) SetTestHeader(val string)
SetTestHeader sets the value of TestHeader.
type HeadersCombinedDef ¶
HeadersCombinedDef is default response for HeadersCombined operation.
func (HeadersCombinedDef) GetStatusCode ¶
func (s HeadersCombinedDef) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (HeadersCombinedDef) GetTestHeader ¶
func (s HeadersCombinedDef) GetTestHeader() string
GetTestHeader returns the value of TestHeader.
func (*HeadersCombinedDef) SetStatusCode ¶
func (s *HeadersCombinedDef) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
func (*HeadersCombinedDef) SetTestHeader ¶
func (s *HeadersCombinedDef) SetTestHeader(val string)
SetTestHeader sets the value of TestHeader.
type HeadersCombinedOK ¶
type HeadersCombinedOK struct {
TestHeader string
}
HeadersCombinedOK is response for HeadersCombined operation.
func (HeadersCombinedOK) GetTestHeader ¶
func (s HeadersCombinedOK) GetTestHeader() string
GetTestHeader returns the value of TestHeader.
func (*HeadersCombinedOK) SetTestHeader ¶
func (s *HeadersCombinedOK) SetTestHeader(val string)
SetTestHeader sets the value of TestHeader.
type HeadersCombinedParams ¶
type HeadersCombinedParams struct {
Type HeadersCombinedType
}
HeadersCombinedParams is parameters of headersCombined operation.
type HeadersCombinedRes ¶
type HeadersCombinedRes interface {
// contains filtered or unexported methods
}
type HeadersCombinedType ¶
type HeadersCombinedType string
const ( HeadersCombinedType200 HeadersCombinedType = "200" HeadersCombinedTypeDefault HeadersCombinedType = "default" HeadersCombinedType4XX HeadersCombinedType = "4XX" )
func (HeadersCombinedType) Validate ¶
func (s HeadersCombinedType) Validate() error
type HeadersDefaultDef ¶
HeadersDefaultDef is default response for HeadersDefault operation.
func (HeadersDefaultDef) GetStatusCode ¶
func (s HeadersDefaultDef) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (HeadersDefaultDef) GetTestHeader ¶
func (s HeadersDefaultDef) GetTestHeader() string
GetTestHeader returns the value of TestHeader.
func (*HeadersDefaultDef) SetStatusCode ¶
func (s *HeadersDefaultDef) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
func (*HeadersDefaultDef) SetTestHeader ¶
func (s *HeadersDefaultDef) SetTestHeader(val string)
SetTestHeader sets the value of TestHeader.
type HeadersPattern4XX ¶
HeadersPattern4XX is 4XX pattern response for HeadersPattern operation.
func (HeadersPattern4XX) GetStatusCode ¶
func (s HeadersPattern4XX) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (HeadersPattern4XX) GetTestHeader ¶
func (s HeadersPattern4XX) GetTestHeader() string
GetTestHeader returns the value of TestHeader.
func (*HeadersPattern4XX) SetStatusCode ¶
func (s *HeadersPattern4XX) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
func (*HeadersPattern4XX) SetTestHeader ¶
func (s *HeadersPattern4XX) SetTestHeader(val string)
SetTestHeader sets the value of TestHeader.
type IntersectPatternCode2XXStatusCode ¶
IntersectPatternCode2XXStatusCode wraps int with StatusCode.
func (IntersectPatternCode2XXStatusCode) GetResponse ¶
func (s IntersectPatternCode2XXStatusCode) GetResponse() int
GetResponse returns the value of Response.
func (IntersectPatternCode2XXStatusCode) GetStatusCode ¶
func (s IntersectPatternCode2XXStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*IntersectPatternCode2XXStatusCode) SetResponse ¶
func (s *IntersectPatternCode2XXStatusCode) SetResponse(val int)
SetResponse sets the value of Response.
func (*IntersectPatternCode2XXStatusCode) SetStatusCode ¶
func (s *IntersectPatternCode2XXStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type IntersectPatternCodeOKApplicationJSON ¶
type IntersectPatternCodeOKApplicationJSON string
func (*IntersectPatternCodeOKApplicationJSON) Decode ¶
func (s *IntersectPatternCodeOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes IntersectPatternCodeOKApplicationJSON from json.
func (IntersectPatternCodeOKApplicationJSON) Encode ¶
func (s IntersectPatternCodeOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes IntersectPatternCodeOKApplicationJSON as json.
func (IntersectPatternCodeOKApplicationJSON) MarshalJSON ¶
func (s IntersectPatternCodeOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IntersectPatternCodeOKApplicationJSON) UnmarshalJSON ¶
func (s *IntersectPatternCodeOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IntersectPatternCodeParams ¶
type IntersectPatternCodeParams struct {
Code int
}
IntersectPatternCodeParams is parameters of intersectPatternCode operation.
type IntersectPatternCodeRes ¶
type IntersectPatternCodeRes interface {
// contains filtered or unexported methods
}
type MultipleGenericResponsesRes ¶
type MultipleGenericResponsesRes interface {
// contains filtered or unexported methods
}
type NilInt ¶
NilInt is nullable int.
func (NilInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*NilInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type NilString ¶
NilString is nullable string.
func NewNilString ¶
NewNilString returns new NilString with value set to v.
func (NilString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*NilString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) Option
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the metric.NewNoopMeterProvider is used.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) Option
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) Option
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
WithPathPrefix specifies server path prefix.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) AnyContentTypeBinaryStringSchema ¶
func (UnimplementedHandler) AnyContentTypeBinaryStringSchema(ctx context.Context) (r AnyContentTypeBinaryStringSchemaOK, _ error)
AnyContentTypeBinaryStringSchema implements anyContentTypeBinaryStringSchema operation.
GET /anyContentTypeBinaryStringSchema
func (UnimplementedHandler) AnyContentTypeBinaryStringSchemaDefault ¶
func (UnimplementedHandler) AnyContentTypeBinaryStringSchemaDefault(ctx context.Context) (r AnyContentTypeBinaryStringSchemaDefaultDefStatusCode, _ error)
AnyContentTypeBinaryStringSchemaDefault implements anyContentTypeBinaryStringSchemaDefault operation.
GET /anyContentTypeBinaryStringSchemaDefault
func (UnimplementedHandler) Combined ¶
func (UnimplementedHandler) Combined(ctx context.Context, params CombinedParams) (r CombinedRes, _ error)
Combined implements combined operation.
GET /combined
func (UnimplementedHandler) Headers200 ¶
func (UnimplementedHandler) Headers200(ctx context.Context) (r Headers200OK, _ error)
Headers200 implements headers200 operation.
GET /headers200
func (UnimplementedHandler) HeadersCombined ¶
func (UnimplementedHandler) HeadersCombined(ctx context.Context, params HeadersCombinedParams) (r HeadersCombinedRes, _ error)
HeadersCombined implements headersCombined operation.
GET /headersCombined
func (UnimplementedHandler) HeadersDefault ¶
func (UnimplementedHandler) HeadersDefault(ctx context.Context) (r HeadersDefaultDef, _ error)
HeadersDefault implements headersDefault operation.
GET /headersDefault
func (UnimplementedHandler) HeadersPattern ¶
func (UnimplementedHandler) HeadersPattern(ctx context.Context) (r HeadersPattern4XX, _ error)
HeadersPattern implements headersPattern operation.
GET /headersPattern
func (UnimplementedHandler) IntersectPatternCode ¶
func (UnimplementedHandler) IntersectPatternCode(ctx context.Context, params IntersectPatternCodeParams) (r IntersectPatternCodeRes, _ error)
IntersectPatternCode implements intersectPatternCode operation.
If a response is defined using an explicit code, the explicit code definition takes precedence over the range definition for that code.
GET /intersectPatternCode
func (UnimplementedHandler) MultipleGenericResponses ¶
func (UnimplementedHandler) MultipleGenericResponses(ctx context.Context) (r MultipleGenericResponsesRes, _ error)
MultipleGenericResponses implements multipleGenericResponses operation.
GET /multipleGenericResponses
func (UnimplementedHandler) OctetStreamBinaryStringSchema ¶
func (UnimplementedHandler) OctetStreamBinaryStringSchema(ctx context.Context) (r OctetStreamBinaryStringSchemaOK, _ error)
OctetStreamBinaryStringSchema implements octetStreamBinaryStringSchema operation.
GET /octetStreamBinaryStringSchema
func (UnimplementedHandler) OctetStreamEmptySchema ¶
func (UnimplementedHandler) OctetStreamEmptySchema(ctx context.Context) (r OctetStreamEmptySchemaOK, _ error)
OctetStreamEmptySchema implements octetStreamEmptySchema operation.
GET /octetStreamEmptySchema
func (UnimplementedHandler) TextPlainBinaryStringSchema ¶
func (UnimplementedHandler) TextPlainBinaryStringSchema(ctx context.Context) (r TextPlainBinaryStringSchemaOK, _ error)
TextPlainBinaryStringSchema implements textPlainBinaryStringSchema operation.
GET /textPlainBinaryStringSchema
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_middleware_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go