Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- type AllRequestBodiesApplicationJSON
- type AllRequestBodiesApplicationXWwwFormUrlencoded
- func (s *AllRequestBodiesApplicationXWwwFormUrlencoded) Decode(d *jx.Decoder) error
- func (s AllRequestBodiesApplicationXWwwFormUrlencoded) Encode(e *jx.Encoder)
- func (s AllRequestBodiesApplicationXWwwFormUrlencoded) MarshalJSON() ([]byte, error)
- func (s *AllRequestBodiesApplicationXWwwFormUrlencoded) UnmarshalJSON(data []byte) error
- type AllRequestBodiesMultipartFormData
- type AllRequestBodiesOK
- type AllRequestBodiesOptionalApplicationJSON
- func (s *AllRequestBodiesOptionalApplicationJSON) Decode(d *jx.Decoder) error
- func (s AllRequestBodiesOptionalApplicationJSON) Encode(e *jx.Encoder)
- func (s AllRequestBodiesOptionalApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *AllRequestBodiesOptionalApplicationJSON) UnmarshalJSON(data []byte) error
- type AllRequestBodiesOptionalApplicationXWwwFormUrlencoded
- func (s *AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) Decode(d *jx.Decoder) error
- func (s AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) Encode(e *jx.Encoder)
- func (s AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) MarshalJSON() ([]byte, error)
- func (s *AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) UnmarshalJSON(data []byte) error
- type AllRequestBodiesOptionalMultipartFormData
- func (s *AllRequestBodiesOptionalMultipartFormData) Decode(d *jx.Decoder) error
- func (s AllRequestBodiesOptionalMultipartFormData) Encode(e *jx.Encoder)
- func (s AllRequestBodiesOptionalMultipartFormData) MarshalJSON() ([]byte, error)
- func (s *AllRequestBodiesOptionalMultipartFormData) UnmarshalJSON(data []byte) error
- type AllRequestBodiesOptionalOK
- type AllRequestBodiesOptionalReq
- type AllRequestBodiesOptionalReqApplicationOctetStream
- type AllRequestBodiesOptionalReqEmptyBody
- type AllRequestBodiesOptionalReqTextPlain
- type AllRequestBodiesReq
- type AllRequestBodiesReqApplicationOctetStream
- type AllRequestBodiesReqTextPlain
- type Client
- func (c *Client) AllRequestBodies(ctx context.Context, request AllRequestBodiesReq) (res AllRequestBodiesOK, err error)
- func (c *Client) AllRequestBodiesOptional(ctx context.Context, request AllRequestBodiesOptionalReq) (res AllRequestBodiesOptionalOK, err error)
- func (c *Client) MaskContentType(ctx context.Context, request MaskContentTypeReqWithContentType) (res MaskResponse, err error)
- func (c *Client) MaskContentTypeOptional(ctx context.Context, request MaskContentTypeOptionalReqWithContentType) (res MaskResponse, err error)
- type ErrorHandler
- type Handler
- type MaskContentTypeOptionalReq
- type MaskContentTypeOptionalReqWithContentType
- type MaskContentTypeReq
- type MaskContentTypeReqWithContentType
- type MaskResponse
- type Middleware
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- 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 WithTracerProvider(provider trace.TracerProvider) Option
- type Route
- type Server
- type SimpleObject
- type UnimplementedHandler
- func (UnimplementedHandler) AllRequestBodies(ctx context.Context, req AllRequestBodiesReq) (r AllRequestBodiesOK, _ error)
- func (UnimplementedHandler) AllRequestBodiesOptional(ctx context.Context, req AllRequestBodiesOptionalReq) (r AllRequestBodiesOptionalOK, _ error)
- func (UnimplementedHandler) MaskContentType(ctx context.Context, req MaskContentTypeReqWithContentType) (r MaskResponse, _ error)
- func (UnimplementedHandler) MaskContentTypeOptional(ctx context.Context, req MaskContentTypeOptionalReqWithContentType) (r MaskResponse, _ error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllRequestBodiesApplicationJSON ¶
type AllRequestBodiesApplicationJSON SimpleObject
func (*AllRequestBodiesApplicationJSON) Decode ¶
func (s *AllRequestBodiesApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes AllRequestBodiesApplicationJSON from json.
func (AllRequestBodiesApplicationJSON) Encode ¶
func (s AllRequestBodiesApplicationJSON) Encode(e *jx.Encoder)
Encode encodes AllRequestBodiesApplicationJSON as json.
func (AllRequestBodiesApplicationJSON) MarshalJSON ¶
func (s AllRequestBodiesApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllRequestBodiesApplicationJSON) UnmarshalJSON ¶
func (s *AllRequestBodiesApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AllRequestBodiesApplicationXWwwFormUrlencoded ¶
type AllRequestBodiesApplicationXWwwFormUrlencoded SimpleObject
func (*AllRequestBodiesApplicationXWwwFormUrlencoded) Decode ¶
func (s *AllRequestBodiesApplicationXWwwFormUrlencoded) Decode(d *jx.Decoder) error
Decode decodes AllRequestBodiesApplicationXWwwFormUrlencoded from json.
func (AllRequestBodiesApplicationXWwwFormUrlencoded) Encode ¶
func (s AllRequestBodiesApplicationXWwwFormUrlencoded) Encode(e *jx.Encoder)
Encode encodes AllRequestBodiesApplicationXWwwFormUrlencoded as json.
func (AllRequestBodiesApplicationXWwwFormUrlencoded) MarshalJSON ¶
func (s AllRequestBodiesApplicationXWwwFormUrlencoded) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllRequestBodiesApplicationXWwwFormUrlencoded) UnmarshalJSON ¶
func (s *AllRequestBodiesApplicationXWwwFormUrlencoded) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AllRequestBodiesMultipartFormData ¶
type AllRequestBodiesMultipartFormData SimpleObject
func (*AllRequestBodiesMultipartFormData) Decode ¶
func (s *AllRequestBodiesMultipartFormData) Decode(d *jx.Decoder) error
Decode decodes AllRequestBodiesMultipartFormData from json.
func (AllRequestBodiesMultipartFormData) Encode ¶
func (s AllRequestBodiesMultipartFormData) Encode(e *jx.Encoder)
Encode encodes AllRequestBodiesMultipartFormData as json.
func (AllRequestBodiesMultipartFormData) MarshalJSON ¶
func (s AllRequestBodiesMultipartFormData) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllRequestBodiesMultipartFormData) UnmarshalJSON ¶
func (s *AllRequestBodiesMultipartFormData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AllRequestBodiesOK ¶
type AllRequestBodiesOptionalApplicationJSON ¶
type AllRequestBodiesOptionalApplicationJSON SimpleObject
func (*AllRequestBodiesOptionalApplicationJSON) Decode ¶
func (s *AllRequestBodiesOptionalApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes AllRequestBodiesOptionalApplicationJSON from json.
func (AllRequestBodiesOptionalApplicationJSON) Encode ¶
func (s AllRequestBodiesOptionalApplicationJSON) Encode(e *jx.Encoder)
Encode encodes AllRequestBodiesOptionalApplicationJSON as json.
func (AllRequestBodiesOptionalApplicationJSON) MarshalJSON ¶
func (s AllRequestBodiesOptionalApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllRequestBodiesOptionalApplicationJSON) UnmarshalJSON ¶
func (s *AllRequestBodiesOptionalApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AllRequestBodiesOptionalApplicationXWwwFormUrlencoded ¶
type AllRequestBodiesOptionalApplicationXWwwFormUrlencoded SimpleObject
func (*AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) Decode ¶
func (s *AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) Decode(d *jx.Decoder) error
Decode decodes AllRequestBodiesOptionalApplicationXWwwFormUrlencoded from json.
func (AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) Encode ¶
func (s AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) Encode(e *jx.Encoder)
Encode encodes AllRequestBodiesOptionalApplicationXWwwFormUrlencoded as json.
func (AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) MarshalJSON ¶
func (s AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) UnmarshalJSON ¶
func (s *AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AllRequestBodiesOptionalMultipartFormData ¶
type AllRequestBodiesOptionalMultipartFormData SimpleObject
func (*AllRequestBodiesOptionalMultipartFormData) Decode ¶
func (s *AllRequestBodiesOptionalMultipartFormData) Decode(d *jx.Decoder) error
Decode decodes AllRequestBodiesOptionalMultipartFormData from json.
func (AllRequestBodiesOptionalMultipartFormData) Encode ¶
func (s AllRequestBodiesOptionalMultipartFormData) Encode(e *jx.Encoder)
Encode encodes AllRequestBodiesOptionalMultipartFormData as json.
func (AllRequestBodiesOptionalMultipartFormData) MarshalJSON ¶
func (s AllRequestBodiesOptionalMultipartFormData) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllRequestBodiesOptionalMultipartFormData) UnmarshalJSON ¶
func (s *AllRequestBodiesOptionalMultipartFormData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AllRequestBodiesOptionalReq ¶
type AllRequestBodiesOptionalReq interface {
// contains filtered or unexported methods
}
type AllRequestBodiesOptionalReqEmptyBody ¶ added in v0.49.0
type AllRequestBodiesOptionalReqEmptyBody struct{}
type AllRequestBodiesReq ¶
type AllRequestBodiesReq interface {
// contains filtered or unexported methods
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func (*Client) AllRequestBodies ¶
func (c *Client) AllRequestBodies(ctx context.Context, request AllRequestBodiesReq) (res AllRequestBodiesOK, err error)
AllRequestBodies invokes allRequestBodies operation.
POST /allRequestBodies
func (*Client) AllRequestBodiesOptional ¶
func (c *Client) AllRequestBodiesOptional(ctx context.Context, request AllRequestBodiesOptionalReq) (res AllRequestBodiesOptionalOK, err error)
AllRequestBodiesOptional invokes allRequestBodiesOptional operation.
POST /allRequestBodiesOptional
func (*Client) MaskContentType ¶ added in v0.48.0
func (c *Client) MaskContentType(ctx context.Context, request MaskContentTypeReqWithContentType) (res MaskResponse, err error)
MaskContentType invokes maskContentType operation.
POST /maskContentType
func (*Client) MaskContentTypeOptional ¶ added in v0.48.0
func (c *Client) MaskContentTypeOptional(ctx context.Context, request MaskContentTypeOptionalReqWithContentType) (res MaskResponse, err error)
MaskContentTypeOptional invokes maskContentTypeOptional operation.
POST /maskContentTypeOptional
type Handler ¶
type Handler interface { // AllRequestBodies implements allRequestBodies operation. // // POST /allRequestBodies AllRequestBodies(ctx context.Context, req AllRequestBodiesReq) (AllRequestBodiesOK, error) // AllRequestBodiesOptional implements allRequestBodiesOptional operation. // // POST /allRequestBodiesOptional AllRequestBodiesOptional(ctx context.Context, req AllRequestBodiesOptionalReq) (AllRequestBodiesOptionalOK, error) // MaskContentType implements maskContentType operation. // // POST /maskContentType MaskContentType(ctx context.Context, req MaskContentTypeReqWithContentType) (MaskResponse, error) // MaskContentTypeOptional implements maskContentTypeOptional operation. // // POST /maskContentTypeOptional MaskContentTypeOptional(ctx context.Context, req MaskContentTypeOptionalReqWithContentType) (MaskResponse, error) }
Handler handles operations described by OpenAPI v3 specification.
type MaskContentTypeOptionalReq ¶ added in v0.48.0
type MaskContentTypeOptionalReqWithContentType ¶ added in v0.48.0
type MaskContentTypeOptionalReqWithContentType struct { ContentType string Content MaskContentTypeOptionalReq }
MaskContentTypeOptionalReqWithContentType wraps MaskContentTypeOptionalReq with Content-Type.
type MaskContentTypeReq ¶ added in v0.48.0
type MaskContentTypeReqWithContentType ¶ added in v0.48.0
type MaskContentTypeReqWithContentType struct { ContentType string Content MaskContentTypeReq }
MaskContentTypeReqWithContentType wraps MaskContentTypeReq with Content-Type.
type MaskResponse ¶ added in v0.48.0
type MaskResponse struct { ContentType string "json:\"contentType\"" Content string "json:\"content\"" }
Ref: #/components/schemas/MaskResponse
func (*MaskResponse) Decode ¶ added in v0.48.0
func (s *MaskResponse) Decode(d *jx.Decoder) error
Decode decodes MaskResponse from json.
func (MaskResponse) Encode ¶ added in v0.48.0
func (s MaskResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (MaskResponse) MarshalJSON ¶ added in v0.48.0
func (s MaskResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MaskResponse) UnmarshalJSON ¶ added in v0.48.0
func (s *MaskResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Middleware ¶ added in v0.49.0
type Middleware = middleware.Middleware
Middleware is middleware type.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
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 ¶ added in v0.46.0
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶ added in v0.49.0
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 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) Name ¶ added in v0.46.0
Name returns ogen operation name.
It is guaranteed to be unique and not empty.
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 SimpleObject ¶
Ref: #/components/schemas/SimpleObject
func (*SimpleObject) Decode ¶
func (s *SimpleObject) Decode(d *jx.Decoder) error
Decode decodes SimpleObject from json.
func (SimpleObject) Encode ¶
func (s SimpleObject) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SimpleObject) MarshalJSON ¶
func (s SimpleObject) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SimpleObject) UnmarshalJSON ¶
func (s *SimpleObject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) AllRequestBodies ¶
func (UnimplementedHandler) AllRequestBodies(ctx context.Context, req AllRequestBodiesReq) (r AllRequestBodiesOK, _ error)
AllRequestBodies implements allRequestBodies operation.
POST /allRequestBodies
func (UnimplementedHandler) AllRequestBodiesOptional ¶
func (UnimplementedHandler) AllRequestBodiesOptional(ctx context.Context, req AllRequestBodiesOptionalReq) (r AllRequestBodiesOptionalOK, _ error)
AllRequestBodiesOptional implements allRequestBodiesOptional operation.
POST /allRequestBodiesOptional
func (UnimplementedHandler) MaskContentType ¶ added in v0.48.0
func (UnimplementedHandler) MaskContentType(ctx context.Context, req MaskContentTypeReqWithContentType) (r MaskResponse, _ error)
MaskContentType implements maskContentType operation.
POST /maskContentType
func (UnimplementedHandler) MaskContentTypeOptional ¶ added in v0.48.0
func (UnimplementedHandler) MaskContentTypeOptional(ctx context.Context, req MaskContentTypeOptionalReqWithContentType) (r MaskResponse, _ error)
MaskContentTypeOptional implements maskContentTypeOptional operation.
POST /maskContentTypeOptional
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_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