api

package
v0.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AnyContentTypeBinaryStringSchemaDefaultDef

type AnyContentTypeBinaryStringSchemaDefaultDef struct {
	Data io.Reader
}

func (AnyContentTypeBinaryStringSchemaDefaultDef) Read

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AnyContentTypeBinaryStringSchemaDefaultDefStatusCode

type AnyContentTypeBinaryStringSchemaDefaultDefStatusCode struct {
	StatusCode int
	Response   AnyContentTypeBinaryStringSchemaDefaultDef
}

AnyContentTypeBinaryStringSchemaDefaultDefStatusCode wraps AnyContentTypeBinaryStringSchemaDefaultDef with StatusCode.

func (AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) GetResponse

GetResponse returns the value of Response.

func (AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) GetStatusCode

GetStatusCode returns the value of StatusCode.

func (*AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) SetResponse

SetResponse sets the value of Response.

func (*AnyContentTypeBinaryStringSchemaDefaultDefStatusCode) SetStatusCode

SetStatusCode sets the value of StatusCode.

type AnyContentTypeBinaryStringSchemaOK

type AnyContentTypeBinaryStringSchemaOK struct {
	Data io.Reader
}

func (AnyContentTypeBinaryStringSchemaOK) Read

func (s AnyContentTypeBinaryStringSchemaOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...Option) (*Client, error)

NewClient initializes new Client defined by OAS.

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

type Combined2XXStatusCode struct {
	StatusCode int
	Response   int
}

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

type Combined5XXStatusCode struct {
	StatusCode int
	Response   bool
}

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

type CombinedDefStatusCode struct {
	StatusCode int
	Response   []string
}

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) GetOk

func (s CombinedOK) GetOk() string

GetOk returns the value of Ok.

func (CombinedOK) MarshalJSON

func (s CombinedOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CombinedOK) SetOk

func (s *CombinedOK) SetOk(val string)

SetOk sets the value of Ok.

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 ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

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)
	// 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

type HeadersCombined4XX struct {
	TestHeader string
	StatusCode int
}

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

type HeadersCombinedDef struct {
	TestHeader string
	StatusCode int
}

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

type HeadersDefaultDef struct {
	TestHeader string
	StatusCode int
}

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

type HeadersPattern4XX struct {
	TestHeader string
	StatusCode int
}

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

type IntersectPatternCode2XXStatusCode struct {
	StatusCode int
	Response   int
}

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

Decode decodes IntersectPatternCodeOKApplicationJSON from json.

func (IntersectPatternCodeOKApplicationJSON) Encode

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 Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type MultipleGenericResponsesRes

type MultipleGenericResponsesRes interface {
	// contains filtered or unexported methods
}

type NilInt

type NilInt struct {
	Value int
	Null  bool
}

NilInt is nullable int.

func NewNilInt

func NewNilInt(v int) NilInt

NewNilInt returns new NilInt with value set to v.

func (*NilInt) Decode

func (o *NilInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (NilInt) Encode

func (o NilInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (NilInt) Get

func (o NilInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (NilInt) IsNull

func (o NilInt) IsNull() bool

IsSet returns true if value is Null.

func (NilInt) MarshalJSON

func (s NilInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilInt) Or

func (o NilInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*NilInt) SetTo

func (o *NilInt) SetTo(v int)

SetTo sets value to v.

func (*NilInt) UnmarshalJSON

func (s *NilInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NilString

type NilString struct {
	Value string
	Null  bool
}

NilString is nullable string.

func NewNilString

func NewNilString(v string) NilString

NewNilString returns new NilString with value set to v.

func (*NilString) Decode

func (o *NilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (NilString) Encode

func (o NilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (NilString) Get

func (o NilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (NilString) IsNull

func (o NilString) IsNull() bool

IsSet returns true if value is Null.

func (NilString) MarshalJSON

func (s NilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilString) Or

func (o NilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*NilString) SetTo

func (o *NilString) SetTo(v string)

SetTo sets value to v.

func (*NilString) UnmarshalJSON

func (s *NilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OctetStreamBinaryStringSchemaOK

type OctetStreamBinaryStringSchemaOK struct {
	Data io.Reader
}

func (OctetStreamBinaryStringSchemaOK) Read

func (s OctetStreamBinaryStringSchemaOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type OctetStreamEmptySchemaOK

type OctetStreamEmptySchemaOK struct {
	Data io.Reader
}

func (OctetStreamEmptySchemaOK) Read

func (s OctetStreamEmptySchemaOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is config option.

func WithClient

func WithClient(client ht.Client) Option

WithClient specifies http client to use.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) Option

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) Option

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

func WithPathPrefix(prefix string) Option

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) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

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.

func NewServer

func NewServer(h Handler, opts ...Option) (*Server, error)

NewServer creates new Server.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (r Route, _ bool)

FindRoute finds Route for given method and path.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type TextPlainBinaryStringSchemaOK

type TextPlainBinaryStringSchemaOK struct {
	Data io.Reader
}

func (TextPlainBinaryStringSchemaOK) Read

func (s TextPlainBinaryStringSchemaOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL