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 Data ¶
type Data struct {
Name string `json:"name"`
}
Some data. Ref: #/components/schemas/Data
type ErrorStatusCode ¶
ErrorStatusCode wraps Error with StatusCode.
func (*ErrorStatusCode) Error ¶
func (s *ErrorStatusCode) Error() string
type Handler ¶
type Handler interface { // DataCreate implements dataCreate operation. // // Creates data. // // POST /data DataCreate(ctx context.Context, req OptData) (Data, error) // DataGet implements dataGet operation. // // Retrieve data. // // 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.
type Route ¶ added in v0.8.0
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶ added in v0.8.0
OperationID returns OpenAPI operationId.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.