Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- type AnyContentTypeBinaryStringSchemaDefaultDef
- type AnyContentTypeBinaryStringSchemaDefaultDefStatusCode
- 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) 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)
- type ErrorHandler
- type Handler
- 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 (s *NilInt) SetFake()
- 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 (s *NilString) SetFake()
- func (o *NilString) SetTo(v string)
- func (s *NilString) UnmarshalJSON(data []byte) error
- type OctetStreamBinaryStringSchemaOK
- type OctetStreamEmptySchemaOK
- type Option
- type Route
- type Server
- type UnimplementedHandler
- func (UnimplementedHandler) AnyContentTypeBinaryStringSchema(ctx context.Context) (r AnyContentTypeBinaryStringSchemaOK, _ error)
- func (UnimplementedHandler) AnyContentTypeBinaryStringSchemaDefault(ctx context.Context) (r AnyContentTypeBinaryStringSchemaDefaultDefStatusCode, _ 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyContentTypeBinaryStringSchemaDefaultDefStatusCode ¶
type AnyContentTypeBinaryStringSchemaDefaultDefStatusCode struct { StatusCode int Response AnyContentTypeBinaryStringSchemaDefaultDef }
AnyContentTypeBinaryStringSchemaDefaultDefStatusCode wraps AnyContentTypeBinaryStringSchemaDefaultDef with 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) 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
type ErrorHandler ¶ added in v0.25.0
ErrorHandler is error handler.
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) // 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) }
Handler handles operations described by OpenAPI v3 specification.
type MultipleGenericResponsesRes ¶
type MultipleGenericResponsesRes interface {
// contains filtered or unexported methods
}
type NilInt ¶
NilInt is nullable int.
func (NilInt) MarshalJSON ¶ added in v0.20.0
MarshalJSON implements stdjson.Marshaler.
func (*NilInt) UnmarshalJSON ¶ added in v0.20.0
UnmarshalJSON implements stdjson.Unmarshaler.
type NilString ¶
NilString is nullable string.
func NewNilString ¶
NewNilString returns new NilString with value set to v.
func (NilString) MarshalJSON ¶ added in v0.20.0
MarshalJSON implements stdjson.Marshaler.
func (*NilString) UnmarshalJSON ¶ added in v0.20.0
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithErrorHandler ¶ added in v0.25.0
func WithErrorHandler(h ErrorHandler) Option
WithErrorHandler specifies error handler to use.
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 WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) Option
WithNotFound specifies Not Found handler to use.
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) 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
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_gen.go
- oas_faker_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_param_dec_gen.go
- oas_param_gen.go
- oas_req_dec_gen.go
- oas_req_enc_gen.go
- oas_res_dec_gen.go
- oas_res_enc_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_security_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go