Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
type ErrorStatusCode ¶
ErrorStatusCode wraps Error with StatusCode.
func (*ErrorStatusCode) Decode ¶
func (s *ErrorStatusCode) Decode(d *jx.Decoder) error
Decode decodes ErrorStatusCode from json.
func (ErrorStatusCode) Encode ¶
func (s ErrorStatusCode) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ErrorStatusCode) Error ¶
func (s *ErrorStatusCode) Error() string
type Handler ¶
type Handler interface { // DataCreate implements dataCreate operation. // // POST /data DataCreate(ctx context.Context, req OptData) (Data, error) // DataGet implements dataGet operation. // // GET /data DataGet(ctx context.Context) (Data, error) // NewError creates ErrorStatusCode from error returned by handler. // // Used for common default response. NewError(ctx context.Context, err error) ErrorStatusCode }
Handler handles operations described by OpenAPI v3 specification.
type OptData ¶
OptData is optional Data.
func NewOptData ¶
NewOptData returns new OptData with value set to v.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.