Documentation ¶
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type Client
- type ClientOption
- type ErrorHandler
- type Handler
- type Middleware
- 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 (o *NilString) SetToNull()
- func (s *NilString) UnmarshalJSON(data []byte) error
- type OptNilBool
- func (o *OptNilBool) Decode(d *jx.Decoder) error
- func (o OptNilBool) Encode(e *jx.Encoder)
- func (o OptNilBool) Get() (v bool, ok bool)
- func (o OptNilBool) IsNull() bool
- func (o OptNilBool) IsSet() bool
- func (s OptNilBool) MarshalJSON() ([]byte, error)
- func (o OptNilBool) Or(d bool) bool
- func (o *OptNilBool) Reset()
- func (o *OptNilBool) SetTo(v bool)
- func (o *OptNilBool) SetToNull()
- func (s *OptNilBool) UnmarshalJSON(data []byte) error
- type OptNilSchemaAOptionalNullableEnum
- func (o *OptNilSchemaAOptionalNullableEnum) Decode(d *jx.Decoder) error
- func (o OptNilSchemaAOptionalNullableEnum) Encode(e *jx.Encoder)
- func (o OptNilSchemaAOptionalNullableEnum) Get() (v SchemaAOptionalNullableEnum, ok bool)
- func (o OptNilSchemaAOptionalNullableEnum) IsNull() bool
- func (o OptNilSchemaAOptionalNullableEnum) IsSet() bool
- func (s OptNilSchemaAOptionalNullableEnum) MarshalJSON() ([]byte, error)
- func (o OptNilSchemaAOptionalNullableEnum) Or(d SchemaAOptionalNullableEnum) SchemaAOptionalNullableEnum
- func (o *OptNilSchemaAOptionalNullableEnum) Reset()
- func (o *OptNilSchemaAOptionalNullableEnum) SetTo(v SchemaAOptionalNullableEnum)
- func (o *OptNilSchemaAOptionalNullableEnum) SetToNull()
- func (s *OptNilSchemaAOptionalNullableEnum) UnmarshalJSON(data []byte) error
- type OptSchemaB
- func (o *OptSchemaB) Decode(d *jx.Decoder) error
- func (o OptSchemaB) Encode(e *jx.Encoder)
- func (o OptSchemaB) Get() (v SchemaB, ok bool)
- func (o OptSchemaB) IsSet() bool
- func (s OptSchemaB) MarshalJSON() ([]byte, error)
- func (o OptSchemaB) Or(d SchemaB) SchemaB
- func (o *OptSchemaB) Reset()
- func (o *OptSchemaB) SetTo(v SchemaB)
- func (s *OptSchemaB) UnmarshalJSON(data []byte) error
- type Option
- type Route
- type SchemaA
- func (s *SchemaA) Decode(d *jx.Decoder) error
- func (s *SchemaA) Encode(e *jx.Encoder)
- func (s *SchemaA) GetBytes() []byte
- func (s *SchemaA) GetEdgeSchemaaRecursive() []SchemaA
- func (s *SchemaA) GetEdgeSchemab() []SchemaB
- func (s *SchemaA) GetEdgeSchemabUniqueOptional() OptSchemaB
- func (s *SchemaA) GetEdgeSchemabUniqueRequired() SchemaB
- func (s *SchemaA) GetEdgeSchemabUniqueRequiredBsBind() SchemaB
- func (s *SchemaA) GetInt64() int64
- func (s *SchemaA) GetJsontypeInts() []int
- func (s *SchemaA) GetJsontypeIntsOptional() []int
- func (s *SchemaA) GetJsontypeStrings() []string
- func (s *SchemaA) GetJsontypeStringsOptional() []string
- func (s *SchemaA) GetOptionalNullableBool() OptNilBool
- func (s *SchemaA) GetOptionalNullableEnum() OptNilSchemaAOptionalNullableEnum
- func (s *SchemaA) GetRequiredEnum() SchemaARequiredEnum
- func (s *SchemaA) GetStringFoobarBind() string
- func (s *SchemaA) GetStringOptionalNullable() NilString
- func (s *SchemaA) MarshalJSON() ([]byte, error)
- func (s *SchemaA) SetBytes(val []byte)
- func (s *SchemaA) SetEdgeSchemaaRecursive(val []SchemaA)
- func (s *SchemaA) SetEdgeSchemab(val []SchemaB)
- func (s *SchemaA) SetEdgeSchemabUniqueOptional(val OptSchemaB)
- func (s *SchemaA) SetEdgeSchemabUniqueRequired(val SchemaB)
- func (s *SchemaA) SetEdgeSchemabUniqueRequiredBsBind(val SchemaB)
- func (s *SchemaA) SetInt64(val int64)
- func (s *SchemaA) SetJsontypeInts(val []int)
- func (s *SchemaA) SetJsontypeIntsOptional(val []int)
- func (s *SchemaA) SetJsontypeStrings(val []string)
- func (s *SchemaA) SetJsontypeStringsOptional(val []string)
- func (s *SchemaA) SetOptionalNullableBool(val OptNilBool)
- func (s *SchemaA) SetOptionalNullableEnum(val OptNilSchemaAOptionalNullableEnum)
- func (s *SchemaA) SetRequiredEnum(val SchemaARequiredEnum)
- func (s *SchemaA) SetStringFoobarBind(val string)
- func (s *SchemaA) SetStringOptionalNullable(val NilString)
- func (s *SchemaA) UnmarshalJSON(data []byte) error
- func (s *SchemaA) Validate() error
- type SchemaAOptionalNullableEnum
- func (s *SchemaAOptionalNullableEnum) Decode(d *jx.Decoder) error
- func (s SchemaAOptionalNullableEnum) Encode(e *jx.Encoder)
- func (s SchemaAOptionalNullableEnum) MarshalJSON() ([]byte, error)
- func (s SchemaAOptionalNullableEnum) MarshalText() ([]byte, error)
- func (s *SchemaAOptionalNullableEnum) UnmarshalJSON(data []byte) error
- func (s *SchemaAOptionalNullableEnum) UnmarshalText(data []byte) error
- func (s SchemaAOptionalNullableEnum) Validate() error
- type SchemaARequiredEnum
- func (s *SchemaARequiredEnum) Decode(d *jx.Decoder) error
- func (s SchemaARequiredEnum) Encode(e *jx.Encoder)
- func (s SchemaARequiredEnum) MarshalJSON() ([]byte, error)
- func (s SchemaARequiredEnum) MarshalText() ([]byte, error)
- func (s *SchemaARequiredEnum) UnmarshalJSON(data []byte) error
- func (s *SchemaARequiredEnum) UnmarshalText(data []byte) error
- func (s SchemaARequiredEnum) Validate() error
- type SchemaB
- 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 UnimplementedHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
type ClientOption ¶
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 { // Test implements test operation. // // GET /test Test(ctx context.Context) (*SchemaA, error) }
Handler handles operations described by OpenAPI v3 specification.
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 OptNilBool ¶
OptNilBool is optional nullable bool.
func NewOptNilBool ¶
func NewOptNilBool(v bool) OptNilBool
NewOptNilBool returns new OptNilBool with value set to v.
func (*OptNilBool) Decode ¶
func (o *OptNilBool) Decode(d *jx.Decoder) error
Decode decodes bool from json.
func (OptNilBool) Get ¶
func (o OptNilBool) Get() (v bool, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilBool) IsSet ¶
func (o OptNilBool) IsSet() bool
IsSet returns true if OptNilBool was set.
func (OptNilBool) MarshalJSON ¶
func (s OptNilBool) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilBool) Or ¶
func (o OptNilBool) Or(d bool) bool
Or returns value if set, or given parameter if does not.
func (*OptNilBool) UnmarshalJSON ¶
func (s *OptNilBool) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilSchemaAOptionalNullableEnum ¶
type OptNilSchemaAOptionalNullableEnum struct { Value SchemaAOptionalNullableEnum Set bool Null bool }
OptNilSchemaAOptionalNullableEnum is optional nullable SchemaAOptionalNullableEnum.
func NewOptNilSchemaAOptionalNullableEnum ¶
func NewOptNilSchemaAOptionalNullableEnum(v SchemaAOptionalNullableEnum) OptNilSchemaAOptionalNullableEnum
NewOptNilSchemaAOptionalNullableEnum returns new OptNilSchemaAOptionalNullableEnum with value set to v.
func (*OptNilSchemaAOptionalNullableEnum) Decode ¶
func (o *OptNilSchemaAOptionalNullableEnum) Decode(d *jx.Decoder) error
Decode decodes SchemaAOptionalNullableEnum from json.
func (OptNilSchemaAOptionalNullableEnum) Encode ¶
func (o OptNilSchemaAOptionalNullableEnum) Encode(e *jx.Encoder)
Encode encodes SchemaAOptionalNullableEnum as json.
func (OptNilSchemaAOptionalNullableEnum) Get ¶
func (o OptNilSchemaAOptionalNullableEnum) Get() (v SchemaAOptionalNullableEnum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilSchemaAOptionalNullableEnum) IsNull ¶
func (o OptNilSchemaAOptionalNullableEnum) IsNull() bool
IsSet returns true if value is Null.
func (OptNilSchemaAOptionalNullableEnum) IsSet ¶
func (o OptNilSchemaAOptionalNullableEnum) IsSet() bool
IsSet returns true if OptNilSchemaAOptionalNullableEnum was set.
func (OptNilSchemaAOptionalNullableEnum) MarshalJSON ¶
func (s OptNilSchemaAOptionalNullableEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilSchemaAOptionalNullableEnum) Or ¶
func (o OptNilSchemaAOptionalNullableEnum) Or(d SchemaAOptionalNullableEnum) SchemaAOptionalNullableEnum
Or returns value if set, or given parameter if does not.
func (*OptNilSchemaAOptionalNullableEnum) Reset ¶
func (o *OptNilSchemaAOptionalNullableEnum) Reset()
Reset unsets value.
func (*OptNilSchemaAOptionalNullableEnum) SetTo ¶
func (o *OptNilSchemaAOptionalNullableEnum) SetTo(v SchemaAOptionalNullableEnum)
SetTo sets value to v.
func (*OptNilSchemaAOptionalNullableEnum) SetToNull ¶
func (o *OptNilSchemaAOptionalNullableEnum) SetToNull()
SetNull sets value to null.
func (*OptNilSchemaAOptionalNullableEnum) UnmarshalJSON ¶
func (s *OptNilSchemaAOptionalNullableEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSchemaB ¶
OptSchemaB is optional SchemaB.
func NewOptSchemaB ¶
func NewOptSchemaB(v SchemaB) OptSchemaB
NewOptSchemaB returns new OptSchemaB with value set to v.
func (*OptSchemaB) Decode ¶
func (o *OptSchemaB) Decode(d *jx.Decoder) error
Decode decodes SchemaB from json.
func (OptSchemaB) Encode ¶
func (o OptSchemaB) Encode(e *jx.Encoder)
Encode encodes SchemaB as json.
func (OptSchemaB) Get ¶
func (o OptSchemaB) Get() (v SchemaB, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSchemaB) IsSet ¶
func (o OptSchemaB) IsSet() bool
IsSet returns true if OptSchemaB was set.
func (OptSchemaB) MarshalJSON ¶
func (s OptSchemaB) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSchemaB) Or ¶
func (o OptSchemaB) Or(d SchemaB) SchemaB
Or returns value if set, or given parameter if does not.
func (*OptSchemaB) UnmarshalJSON ¶
func (s *OptSchemaB) UnmarshalJSON(data []byte) error
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 otel.GetMeterProvider() 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.
type SchemaA ¶
type SchemaA struct { Int64 int64 `json:"int64"` StringFoobarBind string `json:"string_foobar_bind"` StringOptionalNullable NilString `json:"string_optional_nullable"` OptionalNullableBool OptNilBool `json:"optional_nullable_bool"` JsontypeStrings []string `json:"jsontype_strings"` JsontypeStringsOptional []string `json:"jsontype_strings_optional"` JsontypeInts []int `json:"jsontype_ints"` JsontypeIntsOptional []int `json:"jsontype_ints_optional"` RequiredEnum SchemaARequiredEnum `json:"required_enum"` OptionalNullableEnum OptNilSchemaAOptionalNullableEnum `json:"optional_nullable_enum"` Bytes []byte `json:"bytes"` EdgeSchemabUniqueRequired SchemaB `json:"edge_schemab_unique_required"` EdgeSchemabUniqueRequiredBsBind SchemaB `json:"edge_schemab_unique_required_bs_bind"` EdgeSchemabUniqueOptional OptSchemaB `json:"edge_schemab_unique_optional"` EdgeSchemab []SchemaB `json:"edge_schemab"` EdgeSchemaaRecursive []SchemaA `json:"edge_schemaa_recursive"` }
Ref: #/components/schemas/SchemaA
func (*SchemaA) GetEdgeSchemaaRecursive ¶
GetEdgeSchemaaRecursive returns the value of EdgeSchemaaRecursive.
func (*SchemaA) GetEdgeSchemab ¶
GetEdgeSchemab returns the value of EdgeSchemab.
func (*SchemaA) GetEdgeSchemabUniqueOptional ¶
func (s *SchemaA) GetEdgeSchemabUniqueOptional() OptSchemaB
GetEdgeSchemabUniqueOptional returns the value of EdgeSchemabUniqueOptional.
func (*SchemaA) GetEdgeSchemabUniqueRequired ¶
GetEdgeSchemabUniqueRequired returns the value of EdgeSchemabUniqueRequired.
func (*SchemaA) GetEdgeSchemabUniqueRequiredBsBind ¶
GetEdgeSchemabUniqueRequiredBsBind returns the value of EdgeSchemabUniqueRequiredBsBind.
func (*SchemaA) GetJsontypeInts ¶
GetJsontypeInts returns the value of JsontypeInts.
func (*SchemaA) GetJsontypeIntsOptional ¶
GetJsontypeIntsOptional returns the value of JsontypeIntsOptional.
func (*SchemaA) GetJsontypeStrings ¶
GetJsontypeStrings returns the value of JsontypeStrings.
func (*SchemaA) GetJsontypeStringsOptional ¶
GetJsontypeStringsOptional returns the value of JsontypeStringsOptional.
func (*SchemaA) GetOptionalNullableBool ¶
func (s *SchemaA) GetOptionalNullableBool() OptNilBool
GetOptionalNullableBool returns the value of OptionalNullableBool.
func (*SchemaA) GetOptionalNullableEnum ¶
func (s *SchemaA) GetOptionalNullableEnum() OptNilSchemaAOptionalNullableEnum
GetOptionalNullableEnum returns the value of OptionalNullableEnum.
func (*SchemaA) GetRequiredEnum ¶
func (s *SchemaA) GetRequiredEnum() SchemaARequiredEnum
GetRequiredEnum returns the value of RequiredEnum.
func (*SchemaA) GetStringFoobarBind ¶
GetStringFoobarBind returns the value of StringFoobarBind.
func (*SchemaA) GetStringOptionalNullable ¶
GetStringOptionalNullable returns the value of StringOptionalNullable.
func (*SchemaA) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SchemaA) SetEdgeSchemaaRecursive ¶
SetEdgeSchemaaRecursive sets the value of EdgeSchemaaRecursive.
func (*SchemaA) SetEdgeSchemab ¶
SetEdgeSchemab sets the value of EdgeSchemab.
func (*SchemaA) SetEdgeSchemabUniqueOptional ¶
func (s *SchemaA) SetEdgeSchemabUniqueOptional(val OptSchemaB)
SetEdgeSchemabUniqueOptional sets the value of EdgeSchemabUniqueOptional.
func (*SchemaA) SetEdgeSchemabUniqueRequired ¶
SetEdgeSchemabUniqueRequired sets the value of EdgeSchemabUniqueRequired.
func (*SchemaA) SetEdgeSchemabUniqueRequiredBsBind ¶
SetEdgeSchemabUniqueRequiredBsBind sets the value of EdgeSchemabUniqueRequiredBsBind.
func (*SchemaA) SetJsontypeInts ¶
SetJsontypeInts sets the value of JsontypeInts.
func (*SchemaA) SetJsontypeIntsOptional ¶
SetJsontypeIntsOptional sets the value of JsontypeIntsOptional.
func (*SchemaA) SetJsontypeStrings ¶
SetJsontypeStrings sets the value of JsontypeStrings.
func (*SchemaA) SetJsontypeStringsOptional ¶
SetJsontypeStringsOptional sets the value of JsontypeStringsOptional.
func (*SchemaA) SetOptionalNullableBool ¶
func (s *SchemaA) SetOptionalNullableBool(val OptNilBool)
SetOptionalNullableBool sets the value of OptionalNullableBool.
func (*SchemaA) SetOptionalNullableEnum ¶
func (s *SchemaA) SetOptionalNullableEnum(val OptNilSchemaAOptionalNullableEnum)
SetOptionalNullableEnum sets the value of OptionalNullableEnum.
func (*SchemaA) SetRequiredEnum ¶
func (s *SchemaA) SetRequiredEnum(val SchemaARequiredEnum)
SetRequiredEnum sets the value of RequiredEnum.
func (*SchemaA) SetStringFoobarBind ¶
SetStringFoobarBind sets the value of StringFoobarBind.
func (*SchemaA) SetStringOptionalNullable ¶
SetStringOptionalNullable sets the value of StringOptionalNullable.
func (*SchemaA) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SchemaAOptionalNullableEnum ¶
type SchemaAOptionalNullableEnum string
const ( SchemaAOptionalNullableEnumC SchemaAOptionalNullableEnum = "c" SchemaAOptionalNullableEnumD SchemaAOptionalNullableEnum = "d" )
func (*SchemaAOptionalNullableEnum) Decode ¶
func (s *SchemaAOptionalNullableEnum) Decode(d *jx.Decoder) error
Decode decodes SchemaAOptionalNullableEnum from json.
func (SchemaAOptionalNullableEnum) Encode ¶
func (s SchemaAOptionalNullableEnum) Encode(e *jx.Encoder)
Encode encodes SchemaAOptionalNullableEnum as json.
func (SchemaAOptionalNullableEnum) MarshalJSON ¶
func (s SchemaAOptionalNullableEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (SchemaAOptionalNullableEnum) MarshalText ¶
func (s SchemaAOptionalNullableEnum) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SchemaAOptionalNullableEnum) UnmarshalJSON ¶
func (s *SchemaAOptionalNullableEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SchemaAOptionalNullableEnum) UnmarshalText ¶
func (s *SchemaAOptionalNullableEnum) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SchemaAOptionalNullableEnum) Validate ¶
func (s SchemaAOptionalNullableEnum) Validate() error
type SchemaARequiredEnum ¶
type SchemaARequiredEnum string
const ( SchemaARequiredEnumA SchemaARequiredEnum = "a" SchemaARequiredEnumB SchemaARequiredEnum = "b" )
func (*SchemaARequiredEnum) Decode ¶
func (s *SchemaARequiredEnum) Decode(d *jx.Decoder) error
Decode decodes SchemaARequiredEnum from json.
func (SchemaARequiredEnum) Encode ¶
func (s SchemaARequiredEnum) Encode(e *jx.Encoder)
Encode encodes SchemaARequiredEnum as json.
func (SchemaARequiredEnum) MarshalJSON ¶
func (s SchemaARequiredEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (SchemaARequiredEnum) MarshalText ¶
func (s SchemaARequiredEnum) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SchemaARequiredEnum) UnmarshalJSON ¶
func (s *SchemaARequiredEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SchemaARequiredEnum) UnmarshalText ¶
func (s *SchemaARequiredEnum) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SchemaARequiredEnum) Validate ¶
func (s SchemaARequiredEnum) Validate() error
type SchemaB ¶
type SchemaB struct {
ID int64 `json:"id"`
}
Ref: #/components/schemas/SchemaB
func (*SchemaB) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SchemaB) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
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 ¶
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 UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_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
- oas_validators_gen.go