Documentation ¶
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type Client
- type ClientOption
- type ErrorHandler
- type Handler
- type Invoker
- type Labeler
- type Middleware
- type Option
- type PascalExceptionStrat
- func (PascalExceptionStrat) AllValues() []PascalExceptionStrat
- func (s *PascalExceptionStrat) Decode(d *jx.Decoder) error
- func (s PascalExceptionStrat) Encode(e *jx.Encoder)
- func (s PascalExceptionStrat) MarshalJSON() ([]byte, error)
- func (s PascalExceptionStrat) MarshalText() ([]byte, error)
- func (s *PascalExceptionStrat) UnmarshalJSON(data []byte) error
- func (s *PascalExceptionStrat) UnmarshalText(data []byte) error
- func (s PascalExceptionStrat) Validate() error
- type PascalSpecialStrat
- func (PascalSpecialStrat) AllValues() []PascalSpecialStrat
- func (s *PascalSpecialStrat) Decode(d *jx.Decoder) error
- func (s PascalSpecialStrat) Encode(e *jx.Encoder)
- func (s PascalSpecialStrat) MarshalJSON() ([]byte, error)
- func (s PascalSpecialStrat) MarshalText() ([]byte, error)
- func (s *PascalSpecialStrat) UnmarshalJSON(data []byte) error
- func (s *PascalSpecialStrat) UnmarshalText(data []byte) error
- func (s PascalSpecialStrat) Validate() error
- type PascalStrat
- func (PascalStrat) AllValues() []PascalStrat
- func (s *PascalStrat) Decode(d *jx.Decoder) error
- func (s PascalStrat) Encode(e *jx.Encoder)
- func (s PascalStrat) MarshalJSON() ([]byte, error)
- func (s PascalStrat) MarshalText() ([]byte, error)
- func (s *PascalStrat) UnmarshalJSON(data []byte) error
- func (s *PascalStrat) UnmarshalText(data []byte) error
- func (s PascalStrat) Validate() error
- type ProbeLivenessOK
- func (s *ProbeLivenessOK) Decode(d *jx.Decoder) error
- func (s *ProbeLivenessOK) Encode(e *jx.Encoder)
- func (s *ProbeLivenessOK) GetPascalExceptionStrat() PascalExceptionStrat
- func (s *ProbeLivenessOK) GetPascalSpecialStrat() PascalSpecialStrat
- func (s *ProbeLivenessOK) GetPascalStrat() PascalStrat
- func (s *ProbeLivenessOK) GetVeryBadEnum() VeryBadEnum
- func (s *ProbeLivenessOK) MarshalJSON() ([]byte, error)
- func (s *ProbeLivenessOK) SetPascalExceptionStrat(val PascalExceptionStrat)
- func (s *ProbeLivenessOK) SetPascalSpecialStrat(val PascalSpecialStrat)
- func (s *ProbeLivenessOK) SetPascalStrat(val PascalStrat)
- func (s *ProbeLivenessOK) SetVeryBadEnum(val VeryBadEnum)
- func (s *ProbeLivenessOK) UnmarshalJSON(data []byte) error
- func (s *ProbeLivenessOK) Validate() error
- 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 UnimplementedHandler
- type VeryBadEnum
- func (VeryBadEnum) AllValues() []VeryBadEnum
- func (s *VeryBadEnum) Decode(d *jx.Decoder) error
- func (s VeryBadEnum) Encode(e *jx.Encoder)
- func (s VeryBadEnum) MarshalJSON() ([]byte, error)
- func (s VeryBadEnum) MarshalText() ([]byte, error)
- func (s *VeryBadEnum) UnmarshalJSON(data []byte) error
- func (s *VeryBadEnum) UnmarshalText(data []byte) error
- func (s VeryBadEnum) Validate() error
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.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) ProbeLiveness ¶
func (c *Client) ProbeLiveness(ctx context.Context) (*ProbeLivenessOK, error)
ProbeLiveness invokes probeLiveness operation.
Liveness probe for kubernetes.
GET /healthz
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 { // ProbeLiveness implements probeLiveness operation. // // Liveness probe for kubernetes. // // GET /healthz ProbeLiveness(ctx context.Context) (*ProbeLivenessOK, error) }
Handler handles operations described by OpenAPI v3 specification.
type Invoker ¶
type Invoker interface { // ProbeLiveness invokes probeLiveness operation. // // Liveness probe for kubernetes. // // GET /healthz ProbeLiveness(ctx context.Context) (*ProbeLivenessOK, error) }
Invoker invokes operations described by OpenAPI v3 specification.
type Labeler ¶
type Labeler struct {
// contains filtered or unexported fields
}
Labeler is used to allow adding custom attributes to the server request metrics.
func LabelerFromContext ¶
LabelerFromContext retrieves the Labeler from the provided context, if present.
If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.
func (*Labeler) AttributeSet ¶
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
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 PascalExceptionStrat ¶
type PascalExceptionStrat string
Ref: #/components/schemas/PascalExceptionStrat
const ( PascalExceptionStrat1 PascalExceptionStrat = "1" PascalExceptionStratMinus2 PascalExceptionStrat = "-2" )
func (PascalExceptionStrat) AllValues ¶
func (PascalExceptionStrat) AllValues() []PascalExceptionStrat
AllValues returns all PascalExceptionStrat values.
func (*PascalExceptionStrat) Decode ¶
func (s *PascalExceptionStrat) Decode(d *jx.Decoder) error
Decode decodes PascalExceptionStrat from json.
func (PascalExceptionStrat) Encode ¶
func (s PascalExceptionStrat) Encode(e *jx.Encoder)
Encode encodes PascalExceptionStrat as json.
func (PascalExceptionStrat) MarshalJSON ¶
func (s PascalExceptionStrat) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PascalExceptionStrat) MarshalText ¶
func (s PascalExceptionStrat) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PascalExceptionStrat) UnmarshalJSON ¶
func (s *PascalExceptionStrat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PascalExceptionStrat) UnmarshalText ¶
func (s *PascalExceptionStrat) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PascalExceptionStrat) Validate ¶
func (s PascalExceptionStrat) Validate() error
type PascalSpecialStrat ¶
type PascalSpecialStrat string
Ref: #/components/schemas/PascalSpecialStrat
const ( PascalSpecialStrat2Plus2 PascalSpecialStrat = "2+2" PascalSpecialStrat2Minus2 PascalSpecialStrat = "2-2" )
func (PascalSpecialStrat) AllValues ¶
func (PascalSpecialStrat) AllValues() []PascalSpecialStrat
AllValues returns all PascalSpecialStrat values.
func (*PascalSpecialStrat) Decode ¶
func (s *PascalSpecialStrat) Decode(d *jx.Decoder) error
Decode decodes PascalSpecialStrat from json.
func (PascalSpecialStrat) Encode ¶
func (s PascalSpecialStrat) Encode(e *jx.Encoder)
Encode encodes PascalSpecialStrat as json.
func (PascalSpecialStrat) MarshalJSON ¶
func (s PascalSpecialStrat) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PascalSpecialStrat) MarshalText ¶
func (s PascalSpecialStrat) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PascalSpecialStrat) UnmarshalJSON ¶
func (s *PascalSpecialStrat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PascalSpecialStrat) UnmarshalText ¶
func (s *PascalSpecialStrat) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PascalSpecialStrat) Validate ¶
func (s PascalSpecialStrat) Validate() error
type PascalStrat ¶
type PascalStrat string
Ref: #/components/schemas/PascalStrat
const ( PascalStratInSync PascalStrat = "in-sync" PascalStratOutOfSync PascalStrat = "out-of-sync" )
func (PascalStrat) AllValues ¶
func (PascalStrat) AllValues() []PascalStrat
AllValues returns all PascalStrat values.
func (*PascalStrat) Decode ¶
func (s *PascalStrat) Decode(d *jx.Decoder) error
Decode decodes PascalStrat from json.
func (PascalStrat) Encode ¶
func (s PascalStrat) Encode(e *jx.Encoder)
Encode encodes PascalStrat as json.
func (PascalStrat) MarshalJSON ¶
func (s PascalStrat) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PascalStrat) MarshalText ¶
func (s PascalStrat) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PascalStrat) UnmarshalJSON ¶
func (s *PascalStrat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PascalStrat) UnmarshalText ¶
func (s *PascalStrat) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PascalStrat) Validate ¶
func (s PascalStrat) Validate() error
type ProbeLivenessOK ¶
type ProbeLivenessOK struct { VeryBadEnum VeryBadEnum `json:"VeryBadEnum"` PascalStrat PascalStrat `json:"PascalStrat"` PascalSpecialStrat PascalSpecialStrat `json:"PascalSpecialStrat"` PascalExceptionStrat PascalExceptionStrat `json:"PascalExceptionStrat"` }
func (*ProbeLivenessOK) Decode ¶
func (s *ProbeLivenessOK) Decode(d *jx.Decoder) error
Decode decodes ProbeLivenessOK from json.
func (*ProbeLivenessOK) Encode ¶
func (s *ProbeLivenessOK) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProbeLivenessOK) GetPascalExceptionStrat ¶
func (s *ProbeLivenessOK) GetPascalExceptionStrat() PascalExceptionStrat
GetPascalExceptionStrat returns the value of PascalExceptionStrat.
func (*ProbeLivenessOK) GetPascalSpecialStrat ¶
func (s *ProbeLivenessOK) GetPascalSpecialStrat() PascalSpecialStrat
GetPascalSpecialStrat returns the value of PascalSpecialStrat.
func (*ProbeLivenessOK) GetPascalStrat ¶
func (s *ProbeLivenessOK) GetPascalStrat() PascalStrat
GetPascalStrat returns the value of PascalStrat.
func (*ProbeLivenessOK) GetVeryBadEnum ¶
func (s *ProbeLivenessOK) GetVeryBadEnum() VeryBadEnum
GetVeryBadEnum returns the value of VeryBadEnum.
func (*ProbeLivenessOK) MarshalJSON ¶
func (s *ProbeLivenessOK) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProbeLivenessOK) SetPascalExceptionStrat ¶
func (s *ProbeLivenessOK) SetPascalExceptionStrat(val PascalExceptionStrat)
SetPascalExceptionStrat sets the value of PascalExceptionStrat.
func (*ProbeLivenessOK) SetPascalSpecialStrat ¶
func (s *ProbeLivenessOK) SetPascalSpecialStrat(val PascalSpecialStrat)
SetPascalSpecialStrat sets the value of PascalSpecialStrat.
func (*ProbeLivenessOK) SetPascalStrat ¶
func (s *ProbeLivenessOK) SetPascalStrat(val PascalStrat)
SetPascalStrat sets the value of PascalStrat.
func (*ProbeLivenessOK) SetVeryBadEnum ¶
func (s *ProbeLivenessOK) SetVeryBadEnum(val VeryBadEnum)
SetVeryBadEnum sets the value of VeryBadEnum.
func (*ProbeLivenessOK) UnmarshalJSON ¶
func (s *ProbeLivenessOK) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProbeLivenessOK) Validate ¶
func (s *ProbeLivenessOK) Validate() error
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
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.
func (UnimplementedHandler) ProbeLiveness ¶
func (UnimplementedHandler) ProbeLiveness(ctx context.Context) (r *ProbeLivenessOK, _ error)
ProbeLiveness implements probeLiveness operation.
Liveness probe for kubernetes.
GET /healthz
type VeryBadEnum ¶
type VeryBadEnum string
Ref: #/components/schemas/VeryBadEnum
const ( VeryBadEnum_0 VeryBadEnum = " " VeryBadEnum_1 VeryBadEnum = "!" VeryBadEnum_2 VeryBadEnum = "\"" VeryBadEnum_3 VeryBadEnum = "#" VeryBadEnum_4 VeryBadEnum = "$" VeryBadEnum_5 VeryBadEnum = "%" VeryBadEnum_6 VeryBadEnum = "&" VeryBadEnum_7 VeryBadEnum = "'" VeryBadEnum_8 VeryBadEnum = "(" VeryBadEnum_9 VeryBadEnum = ")" VeryBadEnum_10 VeryBadEnum = "*" VeryBadEnum_11 VeryBadEnum = "+" VeryBadEnum_12 VeryBadEnum = "," VeryBadEnum_13 VeryBadEnum = "-" VeryBadEnum_14 VeryBadEnum = "." VeryBadEnum_15 VeryBadEnum = "/" VeryBadEnum_16 VeryBadEnum = "0" VeryBadEnum_17 VeryBadEnum = "1" VeryBadEnum_18 VeryBadEnum = "2" VeryBadEnum_19 VeryBadEnum = "3" VeryBadEnum_20 VeryBadEnum = "4" VeryBadEnum_21 VeryBadEnum = "5" VeryBadEnum_22 VeryBadEnum = "6" VeryBadEnum_23 VeryBadEnum = "7" VeryBadEnum_24 VeryBadEnum = "8" VeryBadEnum_25 VeryBadEnum = "9" VeryBadEnum_26 VeryBadEnum = ":" VeryBadEnum_27 VeryBadEnum = ";" VeryBadEnum_28 VeryBadEnum = "<" VeryBadEnum_29 VeryBadEnum = "=" VeryBadEnum_30 VeryBadEnum = ">" VeryBadEnum_31 VeryBadEnum = "?" VeryBadEnum_32 VeryBadEnum = "@" VeryBadEnum_33 VeryBadEnum = "A" VeryBadEnum_34 VeryBadEnum = "B" VeryBadEnum_35 VeryBadEnum = "C" VeryBadEnum_36 VeryBadEnum = "D" VeryBadEnum_37 VeryBadEnum = "E" VeryBadEnum_38 VeryBadEnum = "F" VeryBadEnum_39 VeryBadEnum = "G" VeryBadEnum_40 VeryBadEnum = "H" VeryBadEnum_41 VeryBadEnum = "I" VeryBadEnum_42 VeryBadEnum = "J" VeryBadEnum_43 VeryBadEnum = "K" VeryBadEnum_44 VeryBadEnum = "L" VeryBadEnum_45 VeryBadEnum = "M" VeryBadEnum_46 VeryBadEnum = "N" VeryBadEnum_47 VeryBadEnum = "O" VeryBadEnum_48 VeryBadEnum = "P" VeryBadEnum_49 VeryBadEnum = "Q" VeryBadEnum_50 VeryBadEnum = "R" VeryBadEnum_51 VeryBadEnum = "S" VeryBadEnum_52 VeryBadEnum = "T" VeryBadEnum_53 VeryBadEnum = "U" VeryBadEnum_54 VeryBadEnum = "V" VeryBadEnum_55 VeryBadEnum = "W" VeryBadEnum_56 VeryBadEnum = "X" VeryBadEnum_57 VeryBadEnum = "Y" VeryBadEnum_58 VeryBadEnum = "Z" VeryBadEnum_59 VeryBadEnum = "[" VeryBadEnum_60 VeryBadEnum = "\\" VeryBadEnum_61 VeryBadEnum = "]" VeryBadEnum_62 VeryBadEnum = "^" VeryBadEnum_63 VeryBadEnum = "_" VeryBadEnum_64 VeryBadEnum = "`" VeryBadEnum_65 VeryBadEnum = "a" VeryBadEnum_66 VeryBadEnum = "b" VeryBadEnum_67 VeryBadEnum = "c" VeryBadEnum_68 VeryBadEnum = "d" VeryBadEnum_69 VeryBadEnum = "e" VeryBadEnum_70 VeryBadEnum = "f" VeryBadEnum_71 VeryBadEnum = "g" VeryBadEnum_72 VeryBadEnum = "h" VeryBadEnum_73 VeryBadEnum = "i" VeryBadEnum_74 VeryBadEnum = "j" VeryBadEnum_75 VeryBadEnum = "k" VeryBadEnum_76 VeryBadEnum = "l" VeryBadEnum_77 VeryBadEnum = "m" VeryBadEnum_78 VeryBadEnum = "n" VeryBadEnum_79 VeryBadEnum = "o" VeryBadEnum_80 VeryBadEnum = "p" VeryBadEnum_81 VeryBadEnum = "q" VeryBadEnum_82 VeryBadEnum = "r" VeryBadEnum_83 VeryBadEnum = "s" VeryBadEnum_84 VeryBadEnum = "t" VeryBadEnum_85 VeryBadEnum = "u" VeryBadEnum_86 VeryBadEnum = "v" VeryBadEnum_87 VeryBadEnum = "w" VeryBadEnum_88 VeryBadEnum = "x" VeryBadEnum_89 VeryBadEnum = "y" VeryBadEnum_90 VeryBadEnum = "z" VeryBadEnum_91 VeryBadEnum = "{" VeryBadEnum_92 VeryBadEnum = "|" VeryBadEnum_93 VeryBadEnum = "}" VeryBadEnum_94 VeryBadEnum = "~" VeryBadEnum_95 VeryBadEnum = "id" VeryBadEnum_96 VeryBadEnum = "id desc" VeryBadEnum_97 VeryBadEnum = "classifyAs" VeryBadEnum_98 VeryBadEnum = "classifyAs desc" VeryBadEnum_99 VeryBadEnum = "senderEmailAddress" VeryBadEnum_100 VeryBadEnum = "senderEmailAddress desc" VeryBadEnum_101 VeryBadEnum = "childFolders" VeryBadEnum_102 VeryBadEnum = "messageRules" VeryBadEnum_103 VeryBadEnum = "messages" VeryBadEnum_104 VeryBadEnum = "multiValueExtendedProperties" VeryBadEnum_105 VeryBadEnum = "singleValueExtendedProperties" )
func (VeryBadEnum) AllValues ¶
func (VeryBadEnum) AllValues() []VeryBadEnum
AllValues returns all VeryBadEnum values.
func (*VeryBadEnum) Decode ¶
func (s *VeryBadEnum) Decode(d *jx.Decoder) error
Decode decodes VeryBadEnum from json.
func (VeryBadEnum) Encode ¶
func (s VeryBadEnum) Encode(e *jx.Encoder)
Encode encodes VeryBadEnum as json.
func (VeryBadEnum) MarshalJSON ¶
func (s VeryBadEnum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (VeryBadEnum) MarshalText ¶
func (s VeryBadEnum) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*VeryBadEnum) UnmarshalJSON ¶
func (s *VeryBadEnum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VeryBadEnum) UnmarshalText ¶
func (s *VeryBadEnum) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (VeryBadEnum) Validate ¶
func (s VeryBadEnum) Validate() error
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_json_gen.go
- oas_labeler_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