Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type Client
- type ClientOption
- type DefaultModel
- func (s *DefaultModel) Decode(d *jx.Decoder) error
- func (s *DefaultModel) Encode(e *jx.Encoder)
- func (s *DefaultModel) GetID() uuid.UUID
- func (s *DefaultModel) GetName() string
- func (s *DefaultModel) MarshalJSON() ([]byte, error)
- func (s *DefaultModel) SetID(val uuid.UUID)
- func (s *DefaultModel) SetName(val string)
- func (s *DefaultModel) UnmarshalJSON(data []byte) error
- type DefaultModelList
- type DefaultModelListHeaders
- type ErrorHandler
- type ErrorItem
- func (s *ErrorItem) Decode(d *jx.Decoder) error
- func (s *ErrorItem) Encode(e *jx.Encoder)
- func (s *ErrorItem) GetCode() int
- func (s *ErrorItem) GetMessage() string
- func (s *ErrorItem) MarshalJSON() ([]byte, error)
- func (s *ErrorItem) SetCode(val int)
- func (s *ErrorItem) SetMessage(val string)
- func (s *ErrorItem) UnmarshalJSON(data []byte) error
- type ErrorStatusCode
- type Handler
- type HandlerImpl
- func (h *HandlerImpl) CreateDefaultModel(ctx context.Context, req *CreateDefaultModel) (CreateDefaultModelRes, error)
- func (h *HandlerImpl) DeleteDefaultModel(ctx context.Context, params DeleteDefaultModelParams) (DeleteDefaultModelRes, error)
- func (h *HandlerImpl) ListDefaultModel(ctx context.Context, params ListDefaultModelParams) (ListDefaultModelRes, error)
- func (h *HandlerImpl) NewError(ctx context.Context, err error) *ErrorStatusCode
- func (h *HandlerImpl) ReadDefaultModel(ctx context.Context, params ReadDefaultModelParams) (ReadDefaultModelRes, error)
- func (h *HandlerImpl) UpdateDefaultModel(ctx context.Context, req *UpdateDefaultModel, params UpdateDefaultModelParams) (UpdateDefaultModelRes, error)
- type Invoker
- type ListDefaultModelBadRequestApplicationJSON
- func (s *ListDefaultModelBadRequestApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListDefaultModelBadRequestApplicationJSON) Encode(e *jx.Encoder)
- func (s ListDefaultModelBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListDefaultModelBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListDefaultModelBadRequestApplicationJSON) Validate() error
- type ListDefaultModelConflictApplicationJSON
- func (s *ListDefaultModelConflictApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListDefaultModelConflictApplicationJSON) Encode(e *jx.Encoder)
- func (s ListDefaultModelConflictApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListDefaultModelConflictApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListDefaultModelConflictApplicationJSON) Validate() error
- type ListDefaultModelInternalServerErrorApplicationJSON
- func (s *ListDefaultModelInternalServerErrorApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListDefaultModelInternalServerErrorApplicationJSON) Encode(e *jx.Encoder)
- func (s ListDefaultModelInternalServerErrorApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListDefaultModelInternalServerErrorApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListDefaultModelInternalServerErrorApplicationJSON) Validate() error
- type ListDefaultModelNotFoundApplicationJSON
- func (s *ListDefaultModelNotFoundApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListDefaultModelNotFoundApplicationJSON) Encode(e *jx.Encoder)
- func (s ListDefaultModelNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListDefaultModelNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListDefaultModelNotFoundApplicationJSON) Validate() error
- type ListDefaultModelParams
- type ListDefaultModelRes
- type Middleware
- type OptInt
- type Option
- type R400Item
- func (s *R400Item) Decode(d *jx.Decoder) error
- func (s *R400Item) Encode(e *jx.Encoder)
- func (s *R400Item) GetCode() int
- func (s *R400Item) GetMessage() string
- func (s *R400Item) MarshalJSON() ([]byte, error)
- func (s *R400Item) SetCode(val int)
- func (s *R400Item) SetMessage(val string)
- func (s *R400Item) UnmarshalJSON(data []byte) error
- type R404Item
- func (s *R404Item) Decode(d *jx.Decoder) error
- func (s *R404Item) Encode(e *jx.Encoder)
- func (s *R404Item) GetCode() int
- func (s *R404Item) GetMessage() string
- func (s *R404Item) MarshalJSON() ([]byte, error)
- func (s *R404Item) SetCode(val int)
- func (s *R404Item) SetMessage(val string)
- func (s *R404Item) UnmarshalJSON(data []byte) error
- type R409Item
- func (s *R409Item) Decode(d *jx.Decoder) error
- func (s *R409Item) Encode(e *jx.Encoder)
- func (s *R409Item) GetCode() int
- func (s *R409Item) GetMessage() string
- func (s *R409Item) MarshalJSON() ([]byte, error)
- func (s *R409Item) SetCode(val int)
- func (s *R409Item) SetMessage(val string)
- func (s *R409Item) UnmarshalJSON(data []byte) error
- type R500Item
- func (s *R500Item) Decode(d *jx.Decoder) error
- func (s *R500Item) Encode(e *jx.Encoder)
- func (s *R500Item) GetCode() int
- func (s *R500Item) GetMessage() string
- func (s *R500Item) MarshalJSON() ([]byte, error)
- func (s *R500Item) SetCode(val int)
- func (s *R500Item) SetMessage(val string)
- func (s *R500Item) UnmarshalJSON(data []byte) error
- type ReadDefaultModelParams
- type ReadDefaultModelRes
- 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
- func (UnimplementedHandler) ListDefaultModel(ctx context.Context, params ListDefaultModelParams) (r ListDefaultModelRes, _ error)
- func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
- func (UnimplementedHandler) ReadDefaultModel(ctx context.Context, params ReadDefaultModelParams) (r ReadDefaultModelRes, _ 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) ListDefaultModel ¶
func (c *Client) ListDefaultModel(ctx context.Context, params ListDefaultModelParams) (ListDefaultModelRes, error)
ListDefaultModel invokes listDefaultModel operation.
List for DefaultModels.
GET /defaultmodel
func (*Client) ReadDefaultModel ¶
func (c *Client) ReadDefaultModel(ctx context.Context, params ReadDefaultModelParams) (ReadDefaultModelRes, error)
ReadDefaultModel invokes readDefaultModel operation.
Finds the DefaultModel with the requested ID and returns it.
GET /defaultmodel/{id}
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 DefaultModel ¶
Ref: #/components/schemas/DefaultModel
func NewDefaultModel ¶
func NewDefaultModel(e service.DefaultModel) *DefaultModel
func NewDefaultModelList ¶
func NewDefaultModelList(es []service.DefaultModel) []DefaultModel
func (*DefaultModel) Decode ¶
func (s *DefaultModel) Decode(d *jx.Decoder) error
Decode decodes DefaultModel from json.
func (*DefaultModel) Encode ¶
func (s *DefaultModel) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DefaultModel) GetID ¶
func (s *DefaultModel) GetID() uuid.UUID
GetID returns the value of ID.
func (*DefaultModel) GetName ¶
func (s *DefaultModel) GetName() string
GetName returns the value of Name.
func (*DefaultModel) MarshalJSON ¶
func (s *DefaultModel) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DefaultModel) SetID ¶
func (s *DefaultModel) SetID(val uuid.UUID)
SetID sets the value of ID.
func (*DefaultModel) SetName ¶
func (s *DefaultModel) SetName(val string)
SetName sets the value of Name.
func (*DefaultModel) UnmarshalJSON ¶
func (s *DefaultModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DefaultModelList ¶
type DefaultModelList []DefaultModel
func (*DefaultModelList) Decode ¶
func (s *DefaultModelList) Decode(d *jx.Decoder) error
Decode decodes DefaultModelList from json.
func (DefaultModelList) Encode ¶
func (s DefaultModelList) Encode(e *jx.Encoder)
Encode encodes DefaultModelList as json.
func (DefaultModelList) MarshalJSON ¶
func (s DefaultModelList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DefaultModelList) UnmarshalJSON ¶
func (s *DefaultModelList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (DefaultModelList) Validate ¶
func (s DefaultModelList) Validate() error
type DefaultModelListHeaders ¶
type DefaultModelListHeaders struct { ContentRange int Response DefaultModelList }
DefaultModelListHeaders wraps DefaultModelList with response headers.
func (*DefaultModelListHeaders) GetContentRange ¶
func (s *DefaultModelListHeaders) GetContentRange() int
GetContentRange returns the value of ContentRange.
func (*DefaultModelListHeaders) GetResponse ¶
func (s *DefaultModelListHeaders) GetResponse() DefaultModelList
GetResponse returns the value of Response.
func (*DefaultModelListHeaders) SetContentRange ¶
func (s *DefaultModelListHeaders) SetContentRange(val int)
SetContentRange sets the value of ContentRange.
func (*DefaultModelListHeaders) SetResponse ¶
func (s *DefaultModelListHeaders) SetResponse(val DefaultModelList)
SetResponse sets the value of Response.
func (*DefaultModelListHeaders) Validate ¶
func (s *DefaultModelListHeaders) Validate() error
type ErrorItem ¶
func (*ErrorItem) GetMessage ¶
GetMessage returns the value of Message.
func (*ErrorItem) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ErrorItem) SetMessage ¶
SetMessage sets the value of Message.
func (*ErrorItem) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ErrorStatusCode ¶
ErrorStatusCode wraps []ErrorItem with StatusCode.
func (*ErrorStatusCode) Error ¶
func (s *ErrorStatusCode) Error() string
func (*ErrorStatusCode) GetResponse ¶
func (s *ErrorStatusCode) GetResponse() []ErrorItem
GetResponse returns the value of Response.
func (*ErrorStatusCode) GetStatusCode ¶
func (s *ErrorStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*ErrorStatusCode) SetResponse ¶
func (s *ErrorStatusCode) SetResponse(val []ErrorItem)
SetResponse sets the value of Response.
func (*ErrorStatusCode) SetStatusCode ¶
func (s *ErrorStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
func (*ErrorStatusCode) Validate ¶
func (s *ErrorStatusCode) Validate() error
type Handler ¶
type Handler interface { // ListDefaultModel implements listDefaultModel operation. // // List for DefaultModels. // // GET /defaultmodel ListDefaultModel(ctx context.Context, params ListDefaultModelParams) (ListDefaultModelRes, error) // ReadDefaultModel implements readDefaultModel operation. // // Finds the DefaultModel with the requested ID and returns it. // // GET /defaultmodel/{id} ReadDefaultModel(ctx context.Context, params ReadDefaultModelParams) (ReadDefaultModelRes, 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 HandlerImpl ¶
type HandlerImpl struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*HandlerImpl) CreateDefaultModel ¶
func (h *HandlerImpl) CreateDefaultModel(ctx context.Context, req *CreateDefaultModel) (CreateDefaultModelRes, error)
func (*HandlerImpl) DeleteDefaultModel ¶
func (h *HandlerImpl) DeleteDefaultModel(ctx context.Context, params DeleteDefaultModelParams) (DeleteDefaultModelRes, error)
DeleteDefaultModel handles DELETE /defaultmodel/{id} requests.
func (*HandlerImpl) ListDefaultModel ¶
func (h *HandlerImpl) ListDefaultModel(ctx context.Context, params ListDefaultModelParams) (ListDefaultModelRes, error)
func (*HandlerImpl) NewError ¶
func (h *HandlerImpl) NewError(ctx context.Context, err error) *ErrorStatusCode
func (*HandlerImpl) ReadDefaultModel ¶
func (h *HandlerImpl) ReadDefaultModel(ctx context.Context, params ReadDefaultModelParams) (ReadDefaultModelRes, error)
func (*HandlerImpl) UpdateDefaultModel ¶
func (h *HandlerImpl) UpdateDefaultModel(ctx context.Context, req *UpdateDefaultModel, params UpdateDefaultModelParams) (UpdateDefaultModelRes, error)
type Invoker ¶
type Invoker interface { // ListDefaultModel invokes listDefaultModel operation. // // List for DefaultModels. // // GET /defaultmodel ListDefaultModel(ctx context.Context, params ListDefaultModelParams) (ListDefaultModelRes, error) // ReadDefaultModel invokes readDefaultModel operation. // // Finds the DefaultModel with the requested ID and returns it. // // GET /defaultmodel/{id} ReadDefaultModel(ctx context.Context, params ReadDefaultModelParams) (ReadDefaultModelRes, error) }
Invoker invokes operations described by OpenAPI v3 specification.
type ListDefaultModelBadRequestApplicationJSON ¶
type ListDefaultModelBadRequestApplicationJSON []R400Item
func (*ListDefaultModelBadRequestApplicationJSON) Decode ¶
func (s *ListDefaultModelBadRequestApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListDefaultModelBadRequestApplicationJSON from json.
func (ListDefaultModelBadRequestApplicationJSON) Encode ¶
func (s ListDefaultModelBadRequestApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListDefaultModelBadRequestApplicationJSON as json.
func (ListDefaultModelBadRequestApplicationJSON) MarshalJSON ¶
func (s ListDefaultModelBadRequestApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListDefaultModelBadRequestApplicationJSON) UnmarshalJSON ¶
func (s *ListDefaultModelBadRequestApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListDefaultModelBadRequestApplicationJSON) Validate ¶
func (s ListDefaultModelBadRequestApplicationJSON) Validate() error
type ListDefaultModelConflictApplicationJSON ¶
type ListDefaultModelConflictApplicationJSON []R409Item
func (*ListDefaultModelConflictApplicationJSON) Decode ¶
func (s *ListDefaultModelConflictApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListDefaultModelConflictApplicationJSON from json.
func (ListDefaultModelConflictApplicationJSON) Encode ¶
func (s ListDefaultModelConflictApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListDefaultModelConflictApplicationJSON as json.
func (ListDefaultModelConflictApplicationJSON) MarshalJSON ¶
func (s ListDefaultModelConflictApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListDefaultModelConflictApplicationJSON) UnmarshalJSON ¶
func (s *ListDefaultModelConflictApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListDefaultModelConflictApplicationJSON) Validate ¶
func (s ListDefaultModelConflictApplicationJSON) Validate() error
type ListDefaultModelInternalServerErrorApplicationJSON ¶
type ListDefaultModelInternalServerErrorApplicationJSON []R500Item
func (*ListDefaultModelInternalServerErrorApplicationJSON) Decode ¶
func (s *ListDefaultModelInternalServerErrorApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListDefaultModelInternalServerErrorApplicationJSON from json.
func (ListDefaultModelInternalServerErrorApplicationJSON) Encode ¶
func (s ListDefaultModelInternalServerErrorApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListDefaultModelInternalServerErrorApplicationJSON as json.
func (ListDefaultModelInternalServerErrorApplicationJSON) MarshalJSON ¶
func (s ListDefaultModelInternalServerErrorApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListDefaultModelInternalServerErrorApplicationJSON) UnmarshalJSON ¶
func (s *ListDefaultModelInternalServerErrorApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListDefaultModelInternalServerErrorApplicationJSON) Validate ¶
func (s ListDefaultModelInternalServerErrorApplicationJSON) Validate() error
type ListDefaultModelNotFoundApplicationJSON ¶
type ListDefaultModelNotFoundApplicationJSON []R404Item
func (*ListDefaultModelNotFoundApplicationJSON) Decode ¶
func (s *ListDefaultModelNotFoundApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListDefaultModelNotFoundApplicationJSON from json.
func (ListDefaultModelNotFoundApplicationJSON) Encode ¶
func (s ListDefaultModelNotFoundApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListDefaultModelNotFoundApplicationJSON as json.
func (ListDefaultModelNotFoundApplicationJSON) MarshalJSON ¶
func (s ListDefaultModelNotFoundApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListDefaultModelNotFoundApplicationJSON) UnmarshalJSON ¶
func (s *ListDefaultModelNotFoundApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListDefaultModelNotFoundApplicationJSON) Validate ¶
func (s ListDefaultModelNotFoundApplicationJSON) Validate() error
type ListDefaultModelParams ¶
type ListDefaultModelParams struct { // What page to render. Page OptInt // Item count to render per page. ItemsPerPage OptInt }
ListDefaultModelParams is parameters of listDefaultModel operation.
type ListDefaultModelRes ¶
type ListDefaultModelRes interface {
// contains filtered or unexported methods
}
type OptInt ¶
OptInt is optional int.
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 R400Item ¶
func (*R400Item) GetMessage ¶
GetMessage returns the value of Message.
func (*R400Item) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R400Item) SetMessage ¶
SetMessage sets the value of Message.
func (*R400Item) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R404Item ¶
func (*R404Item) GetMessage ¶
GetMessage returns the value of Message.
func (*R404Item) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R404Item) SetMessage ¶
SetMessage sets the value of Message.
func (*R404Item) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R409Item ¶
func (*R409Item) GetMessage ¶
GetMessage returns the value of Message.
func (*R409Item) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R409Item) SetMessage ¶
SetMessage sets the value of Message.
func (*R409Item) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R500Item ¶
func (*R500Item) GetMessage ¶
GetMessage returns the value of Message.
func (*R500Item) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R500Item) SetMessage ¶
SetMessage sets the value of Message.
func (*R500Item) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ReadDefaultModelParams ¶
ReadDefaultModelParams is parameters of readDefaultModel operation.
type ReadDefaultModelRes ¶
type ReadDefaultModelRes interface {
// contains filtered or unexported methods
}
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) ListDefaultModel ¶
func (UnimplementedHandler) ListDefaultModel(ctx context.Context, params ListDefaultModelParams) (r ListDefaultModelRes, _ error)
ListDefaultModel implements listDefaultModel operation.
List for DefaultModels.
GET /defaultmodel
func (UnimplementedHandler) NewError ¶
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
NewError creates *ErrorStatusCode from error returned by handler.
Used for common default response.
func (UnimplementedHandler) ReadDefaultModel ¶
func (UnimplementedHandler) ReadDefaultModel(ctx context.Context, params ReadDefaultModelParams) (r ReadDefaultModelRes, _ error)
ReadDefaultModel implements readDefaultModel operation.
Finds the DefaultModel with the requested ID and returns it.
GET /defaultmodel/{id}
Source Files ¶
- handler.go
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_middleware_gen.go
- oas_parameters_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
- responses.go