Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- 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 Base64RequestOK
- type Base64RequestReq
- type Client
- func (c *Client) AllRequestBodies(ctx context.Context, request AllRequestBodiesReq) (AllRequestBodiesOK, error)
- func (c *Client) AllRequestBodiesOptional(ctx context.Context, request AllRequestBodiesOptionalReq) (AllRequestBodiesOptionalOK, error)
- func (c *Client) Base64Request(ctx context.Context, request Base64RequestReq) (Base64RequestOK, error)
- func (c *Client) MaskContentType(ctx context.Context, request *MaskContentTypeReqWithContentType) (*MaskResponse, error)
- func (c *Client) MaskContentTypeOptional(ctx context.Context, request *MaskContentTypeOptionalReqWithContentType) (*MaskResponse, error)
- func (c *Client) OnlyForm(ctx context.Context, request *OnlyFormReq) error
- func (c *Client) OnlyMultipartFile(ctx context.Context, request *OnlyMultipartFileReqForm) error
- func (c *Client) OnlyMultipartForm(ctx context.Context, request *OnlyMultipartFormReq) error
- func (c *Client) StreamJSON(ctx context.Context, request []float64) (float64, error)
- type ClientOption
- type ErrorHandler
- type Handler
- type MaskContentTypeOptionalReq
- type MaskContentTypeOptionalReqWithContentType
- func (s *MaskContentTypeOptionalReqWithContentType) GetContent() MaskContentTypeOptionalReq
- func (s *MaskContentTypeOptionalReqWithContentType) GetContentType() string
- func (s *MaskContentTypeOptionalReqWithContentType) SetContent(val MaskContentTypeOptionalReq)
- func (s *MaskContentTypeOptionalReqWithContentType) SetContentType(val string)
- type MaskContentTypeReq
- type MaskContentTypeReqWithContentType
- type MaskResponse
- func (s *MaskResponse) Decode(d *jx.Decoder) error
- func (s *MaskResponse) Encode(e *jx.Encoder)
- func (s *MaskResponse) GetContent() string
- func (s *MaskResponse) GetContentType() string
- func (s *MaskResponse) MarshalJSON() ([]byte, error)
- func (s *MaskResponse) SetContent(val string)
- func (s *MaskResponse) SetContentType(val string)
- func (s *MaskResponse) UnmarshalJSON(data []byte) error
- type Middleware
- type OnlyFormOK
- type OnlyFormReq
- type OnlyMultipartFileOK
- type OnlyMultipartFileReq
- type OnlyMultipartFileReqForm
- type OnlyMultipartFormOK
- type OnlyMultipartFormReq
- 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
- type Route
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type SimpleObject
- func (s *SimpleObject) Decode(d *jx.Decoder) error
- func (s *SimpleObject) Encode(e *jx.Encoder)
- func (s *SimpleObject) GetAge() OptInt
- func (s *SimpleObject) GetName() string
- func (s *SimpleObject) MarshalJSON() ([]byte, error)
- func (s *SimpleObject) SetAge(val OptInt)
- func (s *SimpleObject) SetName(val string)
- func (s *SimpleObject) UnmarshalJSON(data []byte) error
- 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) Base64Request(ctx context.Context, req Base64RequestReq) (r Base64RequestOK, _ error)
- func (UnimplementedHandler) MaskContentType(ctx context.Context, req *MaskContentTypeReqWithContentType) (r *MaskResponse, _ error)
- func (UnimplementedHandler) MaskContentTypeOptional(ctx context.Context, req *MaskContentTypeOptionalReqWithContentType) (r *MaskResponse, _ error)
- func (UnimplementedHandler) OnlyForm(ctx context.Context, req *OnlyFormReq) error
- func (UnimplementedHandler) OnlyMultipartFile(ctx context.Context, req *OnlyMultipartFileReqForm) error
- func (UnimplementedHandler) OnlyMultipartForm(ctx context.Context, req *OnlyMultipartFormReq) error
- func (UnimplementedHandler) StreamJSON(ctx context.Context, req []float64) (r float64, _ error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
type AllRequestBodiesOptionalReqEmptyBody struct{}
type AllRequestBodiesReq ¶
type AllRequestBodiesReq interface {
// contains filtered or unexported methods
}
type Base64RequestOK ¶ added in v0.55.0
type Base64RequestReq ¶ added in v0.55.0
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) AllRequestBodies ¶
func (c *Client) AllRequestBodies(ctx context.Context, request AllRequestBodiesReq) (AllRequestBodiesOK, error)
AllRequestBodies invokes allRequestBodies operation.
POST /allRequestBodies
func (*Client) AllRequestBodiesOptional ¶
func (c *Client) AllRequestBodiesOptional(ctx context.Context, request AllRequestBodiesOptionalReq) (AllRequestBodiesOptionalOK, error)
AllRequestBodiesOptional invokes allRequestBodiesOptional operation.
POST /allRequestBodiesOptional
func (*Client) Base64Request ¶ added in v0.55.0
func (c *Client) Base64Request(ctx context.Context, request Base64RequestReq) (Base64RequestOK, error)
Base64Request invokes base64Request operation.
POST /base64Request
func (*Client) MaskContentType ¶
func (c *Client) MaskContentType(ctx context.Context, request *MaskContentTypeReqWithContentType) (*MaskResponse, error)
MaskContentType invokes maskContentType operation.
POST /maskContentType
func (*Client) MaskContentTypeOptional ¶
func (c *Client) MaskContentTypeOptional(ctx context.Context, request *MaskContentTypeOptionalReqWithContentType) (*MaskResponse, error)
MaskContentTypeOptional invokes maskContentTypeOptional operation.
POST /maskContentTypeOptional
func (*Client) OnlyForm ¶ added in v0.63.0
func (c *Client) OnlyForm(ctx context.Context, request *OnlyFormReq) error
OnlyForm invokes onlyForm operation.
POST /onlyForm
func (*Client) OnlyMultipartFile ¶ added in v0.63.0
func (c *Client) OnlyMultipartFile(ctx context.Context, request *OnlyMultipartFileReqForm) error
OnlyMultipartFile invokes onlyMultipartFile operation.
POST /onlyMultipartFile
func (*Client) OnlyMultipartForm ¶ added in v0.63.0
func (c *Client) OnlyMultipartForm(ctx context.Context, request *OnlyMultipartFormReq) error
OnlyMultipartForm invokes onlyMultipartForm operation.
POST /onlyMultipartForm
type ClientOption ¶ added in v0.55.0
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
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) // Base64Request implements base64Request operation. // // POST /base64Request Base64Request(ctx context.Context, req Base64RequestReq) (Base64RequestOK, 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) // OnlyForm implements onlyForm operation. // // POST /onlyForm OnlyForm(ctx context.Context, req *OnlyFormReq) error // OnlyMultipartFile implements onlyMultipartFile operation. // // POST /onlyMultipartFile OnlyMultipartFile(ctx context.Context, req *OnlyMultipartFileReqForm) error // OnlyMultipartForm implements onlyMultipartForm operation. // // POST /onlyMultipartForm OnlyMultipartForm(ctx context.Context, req *OnlyMultipartFormReq) error // StreamJSON implements streamJSON operation. // // POST /streamJSON StreamJSON(ctx context.Context, req []float64) (float64, error) }
Handler handles operations described by OpenAPI v3 specification.
type MaskContentTypeOptionalReqWithContentType ¶
type MaskContentTypeOptionalReqWithContentType struct { ContentType string Content MaskContentTypeOptionalReq }
MaskContentTypeOptionalReqWithContentType wraps MaskContentTypeOptionalReq with Content-Type.
func (*MaskContentTypeOptionalReqWithContentType) GetContent ¶
func (s *MaskContentTypeOptionalReqWithContentType) GetContent() MaskContentTypeOptionalReq
GetContent returns the value of Content.
func (*MaskContentTypeOptionalReqWithContentType) GetContentType ¶
func (s *MaskContentTypeOptionalReqWithContentType) GetContentType() string
GetContentType returns the value of ContentType.
func (*MaskContentTypeOptionalReqWithContentType) SetContent ¶
func (s *MaskContentTypeOptionalReqWithContentType) SetContent(val MaskContentTypeOptionalReq)
SetContent sets the value of Content.
func (*MaskContentTypeOptionalReqWithContentType) SetContentType ¶
func (s *MaskContentTypeOptionalReqWithContentType) SetContentType(val string)
SetContentType sets the value of ContentType.
type MaskContentTypeReq ¶
type MaskContentTypeReqWithContentType ¶
type MaskContentTypeReqWithContentType struct { ContentType string Content MaskContentTypeReq }
MaskContentTypeReqWithContentType wraps MaskContentTypeReq with Content-Type.
func (*MaskContentTypeReqWithContentType) GetContent ¶
func (s *MaskContentTypeReqWithContentType) GetContent() MaskContentTypeReq
GetContent returns the value of Content.
func (*MaskContentTypeReqWithContentType) GetContentType ¶
func (s *MaskContentTypeReqWithContentType) GetContentType() string
GetContentType returns the value of ContentType.
func (*MaskContentTypeReqWithContentType) SetContent ¶
func (s *MaskContentTypeReqWithContentType) SetContent(val MaskContentTypeReq)
SetContent sets the value of Content.
func (*MaskContentTypeReqWithContentType) SetContentType ¶
func (s *MaskContentTypeReqWithContentType) SetContentType(val string)
SetContentType sets the value of ContentType.
type MaskResponse ¶
type MaskResponse struct { ContentType string `json:"contentType"` Content string `json:"content"` }
Ref: #/components/schemas/MaskResponse
func (*MaskResponse) Decode ¶
func (s *MaskResponse) Decode(d *jx.Decoder) error
Decode decodes MaskResponse from json.
func (*MaskResponse) Encode ¶
func (s *MaskResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*MaskResponse) GetContent ¶
func (s *MaskResponse) GetContent() string
GetContent returns the value of Content.
func (*MaskResponse) GetContentType ¶
func (s *MaskResponse) GetContentType() string
GetContentType returns the value of ContentType.
func (*MaskResponse) MarshalJSON ¶
func (s *MaskResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MaskResponse) SetContent ¶
func (s *MaskResponse) SetContent(val string)
SetContent sets the value of Content.
func (*MaskResponse) SetContentType ¶
func (s *MaskResponse) SetContentType(val string)
SetContentType sets the value of ContentType.
func (*MaskResponse) UnmarshalJSON ¶
func (s *MaskResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OnlyFormOK ¶ added in v0.63.0
type OnlyFormOK struct{}
OnlyFormOK is response for OnlyForm operation.
type OnlyFormReq ¶ added in v0.63.0
type OnlyFormReq struct {
Field int `json:"field"`
}
func (*OnlyFormReq) GetField ¶ added in v0.63.0
func (s *OnlyFormReq) GetField() int
GetField returns the value of Field.
func (*OnlyFormReq) SetField ¶ added in v0.63.0
func (s *OnlyFormReq) SetField(val int)
SetField sets the value of Field.
type OnlyMultipartFileOK ¶ added in v0.63.0
type OnlyMultipartFileOK struct{}
OnlyMultipartFileOK is response for OnlyMultipartFile operation.
type OnlyMultipartFileReq ¶ added in v0.63.0
type OnlyMultipartFileReq struct {
File string `json:"file"`
}
func (*OnlyMultipartFileReq) GetFile ¶ added in v0.63.0
func (s *OnlyMultipartFileReq) GetFile() string
GetFile returns the value of File.
func (*OnlyMultipartFileReq) SetFile ¶ added in v0.63.0
func (s *OnlyMultipartFileReq) SetFile(val string)
SetFile sets the value of File.
type OnlyMultipartFileReqForm ¶ added in v0.63.0
type OnlyMultipartFileReqForm struct {
File ht.MultipartFile `json:"file"`
}
func (*OnlyMultipartFileReqForm) GetFile ¶ added in v0.63.0
func (s *OnlyMultipartFileReqForm) GetFile() ht.MultipartFile
GetFile returns the value of File.
func (*OnlyMultipartFileReqForm) SetFile ¶ added in v0.63.0
func (s *OnlyMultipartFileReqForm) SetFile(val ht.MultipartFile)
SetFile sets the value of File.
type OnlyMultipartFormOK ¶ added in v0.63.0
type OnlyMultipartFormOK struct{}
OnlyMultipartFormOK is response for OnlyMultipartForm operation.
type OnlyMultipartFormReq ¶ added in v0.63.0
type OnlyMultipartFormReq struct {
Field int `json:"field"`
}
func (*OnlyMultipartFormReq) GetField ¶ added in v0.63.0
func (s *OnlyMultipartFormReq) GetField() int
GetField returns the value of Field.
func (*OnlyMultipartFormReq) SetField ¶ added in v0.63.0
func (s *OnlyMultipartFormReq) SetField(val int)
SetField sets the value of Field.
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 { ServerOption ClientOption }
Option is config option.
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 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.
func (Route) PathPattern ¶ added in v0.58.0
PathPattern returns OpenAPI path.
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.
func NewServer ¶
func NewServer(h Handler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶ added in v0.55.0
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
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 WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
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) GetAge ¶
func (s *SimpleObject) GetAge() OptInt
GetAge returns the value of Age.
func (*SimpleObject) GetName ¶
func (s *SimpleObject) GetName() string
GetName returns the value of Name.
func (*SimpleObject) MarshalJSON ¶
func (s *SimpleObject) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SimpleObject) SetAge ¶
func (s *SimpleObject) SetAge(val OptInt)
SetAge sets the value of Age.
func (*SimpleObject) SetName ¶
func (s *SimpleObject) SetName(val string)
SetName sets the value of Name.
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) Base64Request ¶ added in v0.55.0
func (UnimplementedHandler) Base64Request(ctx context.Context, req Base64RequestReq) (r Base64RequestOK, _ error)
Base64Request implements base64Request operation.
POST /base64Request
func (UnimplementedHandler) MaskContentType ¶
func (UnimplementedHandler) MaskContentType(ctx context.Context, req *MaskContentTypeReqWithContentType) (r *MaskResponse, _ error)
MaskContentType implements maskContentType operation.
POST /maskContentType
func (UnimplementedHandler) MaskContentTypeOptional ¶
func (UnimplementedHandler) MaskContentTypeOptional(ctx context.Context, req *MaskContentTypeOptionalReqWithContentType) (r *MaskResponse, _ error)
MaskContentTypeOptional implements maskContentTypeOptional operation.
POST /maskContentTypeOptional
func (UnimplementedHandler) OnlyForm ¶ added in v0.63.0
func (UnimplementedHandler) OnlyForm(ctx context.Context, req *OnlyFormReq) error
OnlyForm implements onlyForm operation.
POST /onlyForm
func (UnimplementedHandler) OnlyMultipartFile ¶ added in v0.63.0
func (UnimplementedHandler) OnlyMultipartFile(ctx context.Context, req *OnlyMultipartFileReqForm) error
OnlyMultipartFile implements onlyMultipartFile operation.
POST /onlyMultipartFile
func (UnimplementedHandler) OnlyMultipartForm ¶ added in v0.63.0
func (UnimplementedHandler) OnlyMultipartForm(ctx context.Context, req *OnlyMultipartFormReq) error
OnlyMultipartForm implements onlyMultipartForm operation.
POST /onlyMultipartForm
func (UnimplementedHandler) StreamJSON ¶ added in v0.59.0
StreamJSON implements streamJSON operation.
POST /streamJSON
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