Documentation
¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AddIncidentBadRequest
- type AddIncidentRes
- type AddIncidentUnprocessableEntity
- type BearerAuth
- type Client
- func (c *Client) AddIncident(ctx context.Context, request *Incident) (AddIncidentRes, error)
- func (c *Client) DeleteIncident(ctx context.Context, params DeleteIncidentParams) (DeleteIncidentRes, error)
- func (c *Client) GetIncidentById(ctx context.Context, params GetIncidentByIdParams) (GetIncidentByIdRes, error)
- func (c *Client) GetIncidents(ctx context.Context) (GetIncidentsRes, error)
- func (c *Client) GetStatuses(ctx context.Context) (GetStatusesRes, error)
- func (c *Client) UpdateIncident(ctx context.Context, request *Incident) (UpdateIncidentRes, error)
- type ClientOption
- type DeleteIncidentBadRequest
- type DeleteIncidentOK
- type DeleteIncidentParams
- type DeleteIncidentRes
- type ErrorHandler
- type GetIncidentByIdBadRequest
- type GetIncidentByIdNotFound
- type GetIncidentByIdParams
- type GetIncidentByIdRes
- type GetIncidentsBadRequest
- type GetIncidentsRes
- type GetStatusesBadRequest
- type GetStatusesRes
- type Handler
- type Incident
- func (s *Incident) Decode(d *jx.Decoder) error
- func (s *Incident) Encode(e *jx.Encoder)
- func (s *Incident) GetDate() string
- func (s *Incident) GetFio() string
- func (s *Incident) GetID() OptInt
- func (s *Incident) GetRegion() string
- func (s *Incident) GetStatusId() string
- func (s *Incident) MarshalJSON() ([]byte, error)
- func (s *Incident) SetDate(val string)
- func (s *Incident) SetFio(val string)
- func (s *Incident) SetID(val OptInt)
- func (s *Incident) SetRegion(val string)
- func (s *Incident) SetStatusId(val string)
- func (s *Incident) UnmarshalJSON(data []byte) error
- type IncidentResponse
- func (s *IncidentResponse) Decode(d *jx.Decoder) error
- func (s *IncidentResponse) Encode(e *jx.Encoder)
- func (s *IncidentResponse) GetData() Incident
- func (s *IncidentResponse) GetStatus() string
- func (s *IncidentResponse) GetTrackingId() string
- func (s *IncidentResponse) MarshalJSON() ([]byte, error)
- func (s *IncidentResponse) SetData(val Incident)
- func (s *IncidentResponse) SetStatus(val string)
- func (s *IncidentResponse) SetTrackingId(val string)
- func (s *IncidentResponse) UnmarshalJSON(data []byte) error
- type IncidentsHandler
- type IncidentsInvoker
- type IncidentsResponse
- func (s *IncidentsResponse) Decode(d *jx.Decoder) error
- func (s *IncidentsResponse) Encode(e *jx.Encoder)
- func (s *IncidentsResponse) GetData() []Incident
- func (s *IncidentsResponse) GetStatus() string
- func (s *IncidentsResponse) GetTrackingId() string
- func (s *IncidentsResponse) MarshalJSON() ([]byte, error)
- func (s *IncidentsResponse) SetData(val []Incident)
- func (s *IncidentsResponse) SetStatus(val string)
- func (s *IncidentsResponse) SetTrackingId(val string)
- func (s *IncidentsResponse) UnmarshalJSON(data []byte) error
- func (s *IncidentsResponse) Validate() error
- type Invoker
- type Labeler
- type Middleware
- type OperationName
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type Option
- type Route
- type SecurityHandler
- type SecuritySource
- 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 Status
- func (s *Status) Decode(d *jx.Decoder) error
- func (s *Status) Encode(e *jx.Encoder)
- func (s *Status) GetID() int
- func (s *Status) GetName() string
- func (s *Status) MarshalJSON() ([]byte, error)
- func (s *Status) SetID(val int)
- func (s *Status) SetName(val string)
- func (s *Status) UnmarshalJSON(data []byte) error
- type StatusesHandler
- type StatusesInvoker
- type StatusesResponse
- func (s *StatusesResponse) Decode(d *jx.Decoder) error
- func (s *StatusesResponse) Encode(e *jx.Encoder)
- func (s *StatusesResponse) GetData() []Status
- func (s *StatusesResponse) GetStatus() string
- func (s *StatusesResponse) GetTrackingId() string
- func (s *StatusesResponse) MarshalJSON() ([]byte, error)
- func (s *StatusesResponse) SetData(val []Status)
- func (s *StatusesResponse) SetStatus(val string)
- func (s *StatusesResponse) SetTrackingId(val string)
- func (s *StatusesResponse) UnmarshalJSON(data []byte) error
- func (s *StatusesResponse) Validate() error
- type UnimplementedHandler
- func (UnimplementedHandler) AddIncident(ctx context.Context, req *Incident) (r AddIncidentRes, _ error)
- func (UnimplementedHandler) DeleteIncident(ctx context.Context, params DeleteIncidentParams) (r DeleteIncidentRes, _ error)
- func (UnimplementedHandler) GetIncidentById(ctx context.Context, params GetIncidentByIdParams) (r GetIncidentByIdRes, _ error)
- func (UnimplementedHandler) GetIncidents(ctx context.Context) (r GetIncidentsRes, _ error)
- func (UnimplementedHandler) GetStatuses(ctx context.Context) (r GetStatusesRes, _ error)
- func (UnimplementedHandler) UpdateIncident(ctx context.Context, req *Incident) (r UpdateIncidentRes, _ error)
- type UpdateIncidentBadRequest
- type UpdateIncidentNotFound
- type UpdateIncidentRes
- type UpdateIncidentUnprocessableEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddIncidentBadRequest ¶
type AddIncidentBadRequest struct{}
AddIncidentBadRequest is response for AddIncident operation.
type AddIncidentRes ¶
type AddIncidentRes interface {
// contains filtered or unexported methods
}
type AddIncidentUnprocessableEntity ¶
type AddIncidentUnprocessableEntity struct{}
AddIncidentUnprocessableEntity is response for AddIncident operation.
type BearerAuth ¶
type BearerAuth struct {
Token string
}
func (*BearerAuth) GetToken ¶
func (s *BearerAuth) GetToken() string
GetToken returns the value of Token.
func (*BearerAuth) SetToken ¶
func (s *BearerAuth) SetToken(val string)
SetToken sets the value of Token.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) AddIncident ¶
AddIncident invokes addIncident operation.
Add a new incidents.
POST /incidents
func (*Client) DeleteIncident ¶
func (c *Client) DeleteIncident(ctx context.Context, params DeleteIncidentParams) (DeleteIncidentRes, error)
DeleteIncident invokes deleteIncident operation.
Delete an incidents.
DELETE /incidents/{incidentId}
func (*Client) GetIncidentById ¶
func (c *Client) GetIncidentById(ctx context.Context, params GetIncidentByIdParams) (GetIncidentByIdRes, error)
GetIncidentById invokes getIncidentById operation.
Returns a single incidents.
GET /incidents/{incidentId}
func (*Client) GetIncidents ¶
func (c *Client) GetIncidents(ctx context.Context) (GetIncidentsRes, error)
GetIncidents invokes getIncidents operation.
List of incidents.
GET /incidents
func (*Client) GetStatuses ¶
func (c *Client) GetStatuses(ctx context.Context) (GetStatusesRes, error)
GetStatuses invokes getStatuses operation.
Получение списка статусов.
GET /statuses
func (*Client) UpdateIncident ¶
UpdateIncident invokes updateIncident operation.
Update an existing incidents by Id.
PUT /incidents
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 DeleteIncidentBadRequest ¶
type DeleteIncidentBadRequest struct{}
DeleteIncidentBadRequest is response for DeleteIncident operation.
type DeleteIncidentOK ¶
type DeleteIncidentOK struct{}
DeleteIncidentOK is response for DeleteIncident operation.
type DeleteIncidentParams ¶
type DeleteIncidentParams struct {
// Request id to delete.
IncidentId int
}
DeleteIncidentParams is parameters of deleteIncident operation.
type DeleteIncidentRes ¶
type DeleteIncidentRes interface {
// contains filtered or unexported methods
}
type GetIncidentByIdBadRequest ¶
type GetIncidentByIdBadRequest struct{}
GetIncidentByIdBadRequest is response for GetIncidentById operation.
type GetIncidentByIdNotFound ¶
type GetIncidentByIdNotFound struct{}
GetIncidentByIdNotFound is response for GetIncidentById operation.
type GetIncidentByIdParams ¶
type GetIncidentByIdParams struct {
// ID of Incidents to return.
IncidentId int
}
GetIncidentByIdParams is parameters of getIncidentById operation.
type GetIncidentByIdRes ¶
type GetIncidentByIdRes interface {
// contains filtered or unexported methods
}
type GetIncidentsBadRequest ¶
type GetIncidentsBadRequest struct{}
GetIncidentsBadRequest is response for GetIncidents operation.
type GetIncidentsRes ¶
type GetIncidentsRes interface {
// contains filtered or unexported methods
}
type GetStatusesBadRequest ¶
type GetStatusesBadRequest struct{}
GetStatusesBadRequest is response for GetStatuses operation.
type GetStatusesRes ¶
type GetStatusesRes interface {
// contains filtered or unexported methods
}
type Handler ¶
type Handler interface {
IncidentsHandler
StatusesHandler
}
Handler handles operations described by OpenAPI v3 specification.
type Incident ¶
type Incident struct {
// Incident id.
ID OptInt `json:"id"`
Region string `json:"region"`
Fio string `json:"fio"`
StatusId string `json:"statusId"`
Date string `json:"date"`
}
Ref: #/components/schemas/Incident
func (*Incident) GetStatusId ¶
GetStatusId returns the value of StatusId.
func (*Incident) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Incident) SetStatusId ¶
SetStatusId sets the value of StatusId.
func (*Incident) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentResponse ¶
type IncidentResponse struct {
TrackingId string `json:"trackingId"`
Status string `json:"status"`
Data Incident `json:"data"`
}
Ref: #/components/schemas/IncidentResponse
func (*IncidentResponse) Decode ¶
func (s *IncidentResponse) Decode(d *jx.Decoder) error
Decode decodes IncidentResponse from json.
func (*IncidentResponse) Encode ¶
func (s *IncidentResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*IncidentResponse) GetData ¶
func (s *IncidentResponse) GetData() Incident
GetData returns the value of Data.
func (*IncidentResponse) GetStatus ¶
func (s *IncidentResponse) GetStatus() string
GetStatus returns the value of Status.
func (*IncidentResponse) GetTrackingId ¶
func (s *IncidentResponse) GetTrackingId() string
GetTrackingId returns the value of TrackingId.
func (*IncidentResponse) MarshalJSON ¶
func (s *IncidentResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentResponse) SetData ¶
func (s *IncidentResponse) SetData(val Incident)
SetData sets the value of Data.
func (*IncidentResponse) SetStatus ¶
func (s *IncidentResponse) SetStatus(val string)
SetStatus sets the value of Status.
func (*IncidentResponse) SetTrackingId ¶
func (s *IncidentResponse) SetTrackingId(val string)
SetTrackingId sets the value of TrackingId.
func (*IncidentResponse) UnmarshalJSON ¶
func (s *IncidentResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentsHandler ¶
type IncidentsHandler interface {
// AddIncident implements addIncident operation.
//
// Add a new incidents.
//
// POST /incidents
AddIncident(ctx context.Context, req *Incident) (AddIncidentRes, error)
// DeleteIncident implements deleteIncident operation.
//
// Delete an incidents.
//
// DELETE /incidents/{incidentId}
DeleteIncident(ctx context.Context, params DeleteIncidentParams) (DeleteIncidentRes, error)
// GetIncidentById implements getIncidentById operation.
//
// Returns a single incidents.
//
// GET /incidents/{incidentId}
GetIncidentById(ctx context.Context, params GetIncidentByIdParams) (GetIncidentByIdRes, error)
// GetIncidents implements getIncidents operation.
//
// List of incidents.
//
// GET /incidents
GetIncidents(ctx context.Context) (GetIncidentsRes, error)
// UpdateIncident implements updateIncident operation.
//
// Update an existing incidents by Id.
//
// PUT /incidents
UpdateIncident(ctx context.Context, req *Incident) (UpdateIncidentRes, error)
}
IncidentsHandler handles operations described by OpenAPI v3 specification.
x-ogen-operation-group: Incidents
type IncidentsInvoker ¶
type IncidentsInvoker interface {
// AddIncident invokes addIncident operation.
//
// Add a new incidents.
//
// POST /incidents
AddIncident(ctx context.Context, request *Incident) (AddIncidentRes, error)
// DeleteIncident invokes deleteIncident operation.
//
// Delete an incidents.
//
// DELETE /incidents/{incidentId}
DeleteIncident(ctx context.Context, params DeleteIncidentParams) (DeleteIncidentRes, error)
// GetIncidentById invokes getIncidentById operation.
//
// Returns a single incidents.
//
// GET /incidents/{incidentId}
GetIncidentById(ctx context.Context, params GetIncidentByIdParams) (GetIncidentByIdRes, error)
// GetIncidents invokes getIncidents operation.
//
// List of incidents.
//
// GET /incidents
GetIncidents(ctx context.Context) (GetIncidentsRes, error)
// UpdateIncident invokes updateIncident operation.
//
// Update an existing incidents by Id.
//
// PUT /incidents
UpdateIncident(ctx context.Context, request *Incident) (UpdateIncidentRes, error)
}
IncidentsInvoker invokes operations described by OpenAPI v3 specification.
x-gen-operation-group: Incidents
type IncidentsResponse ¶
type IncidentsResponse struct {
TrackingId string `json:"trackingId"`
Status string `json:"status"`
Data []Incident `json:"data"`
}
Ref: #/components/schemas/IncidentsResponse
func (*IncidentsResponse) Decode ¶
func (s *IncidentsResponse) Decode(d *jx.Decoder) error
Decode decodes IncidentsResponse from json.
func (*IncidentsResponse) Encode ¶
func (s *IncidentsResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*IncidentsResponse) GetData ¶
func (s *IncidentsResponse) GetData() []Incident
GetData returns the value of Data.
func (*IncidentsResponse) GetStatus ¶
func (s *IncidentsResponse) GetStatus() string
GetStatus returns the value of Status.
func (*IncidentsResponse) GetTrackingId ¶
func (s *IncidentsResponse) GetTrackingId() string
GetTrackingId returns the value of TrackingId.
func (*IncidentsResponse) MarshalJSON ¶
func (s *IncidentsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentsResponse) SetData ¶
func (s *IncidentsResponse) SetData(val []Incident)
SetData sets the value of Data.
func (*IncidentsResponse) SetStatus ¶
func (s *IncidentsResponse) SetStatus(val string)
SetStatus sets the value of Status.
func (*IncidentsResponse) SetTrackingId ¶
func (s *IncidentsResponse) SetTrackingId(val string)
SetTrackingId sets the value of TrackingId.
func (*IncidentsResponse) UnmarshalJSON ¶
func (s *IncidentsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*IncidentsResponse) Validate ¶
func (s *IncidentsResponse) Validate() error
type Invoker ¶
type Invoker interface {
IncidentsInvoker
StatusesInvoker
}
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 OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const ( AddIncidentOperation OperationName = "AddIncident" DeleteIncidentOperation OperationName = "DeleteIncident" GetIncidentByIdOperation OperationName = "GetIncidentById" GetIncidentsOperation OperationName = "GetIncidents" GetStatusesOperation OperationName = "GetStatuses" UpdateIncidentOperation OperationName = "UpdateIncident" )
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
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 SecurityHandler ¶
type SecurityHandler interface {
// HandleBearerAuth handles bearerAuth security.
HandleBearerAuth(ctx context.Context, operationName OperationName, t BearerAuth) (context.Context, error)
}
SecurityHandler is handler for security parameters.
type SecuritySource ¶
type SecuritySource interface {
// BearerAuth provides bearerAuth security value.
BearerAuth(ctx context.Context, operationName OperationName) (BearerAuth, error)
}
SecuritySource is provider of security values (tokens, passwords, etc.).
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, sec SecurityHandler, 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 Status ¶
Ref: #/components/schemas/Status
func (*Status) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Status) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type StatusesHandler ¶
type StatusesHandler interface {
// GetStatuses implements getStatuses operation.
//
// Получение списка статусов.
//
// GET /statuses
GetStatuses(ctx context.Context) (GetStatusesRes, error)
}
StatusesHandler handles operations described by OpenAPI v3 specification.
x-ogen-operation-group: Statuses
type StatusesInvoker ¶
type StatusesInvoker interface {
// GetStatuses invokes getStatuses operation.
//
// Получение списка статусов.
//
// GET /statuses
GetStatuses(ctx context.Context) (GetStatusesRes, error)
}
StatusesInvoker invokes operations described by OpenAPI v3 specification.
x-gen-operation-group: Statuses
type StatusesResponse ¶
type StatusesResponse struct {
TrackingId string `json:"trackingId"`
Status string `json:"status"`
Data []Status `json:"data"`
}
Ref: #/components/schemas/StatusesResponse
func (*StatusesResponse) Decode ¶
func (s *StatusesResponse) Decode(d *jx.Decoder) error
Decode decodes StatusesResponse from json.
func (*StatusesResponse) Encode ¶
func (s *StatusesResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*StatusesResponse) GetData ¶
func (s *StatusesResponse) GetData() []Status
GetData returns the value of Data.
func (*StatusesResponse) GetStatus ¶
func (s *StatusesResponse) GetStatus() string
GetStatus returns the value of Status.
func (*StatusesResponse) GetTrackingId ¶
func (s *StatusesResponse) GetTrackingId() string
GetTrackingId returns the value of TrackingId.
func (*StatusesResponse) MarshalJSON ¶
func (s *StatusesResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*StatusesResponse) SetData ¶
func (s *StatusesResponse) SetData(val []Status)
SetData sets the value of Data.
func (*StatusesResponse) SetStatus ¶
func (s *StatusesResponse) SetStatus(val string)
SetStatus sets the value of Status.
func (*StatusesResponse) SetTrackingId ¶
func (s *StatusesResponse) SetTrackingId(val string)
SetTrackingId sets the value of TrackingId.
func (*StatusesResponse) UnmarshalJSON ¶
func (s *StatusesResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*StatusesResponse) Validate ¶
func (s *StatusesResponse) Validate() error
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) AddIncident ¶
func (UnimplementedHandler) AddIncident(ctx context.Context, req *Incident) (r AddIncidentRes, _ error)
AddIncident implements addIncident operation.
Add a new incidents.
POST /incidents
func (UnimplementedHandler) DeleteIncident ¶
func (UnimplementedHandler) DeleteIncident(ctx context.Context, params DeleteIncidentParams) (r DeleteIncidentRes, _ error)
DeleteIncident implements deleteIncident operation.
Delete an incidents.
DELETE /incidents/{incidentId}
func (UnimplementedHandler) GetIncidentById ¶
func (UnimplementedHandler) GetIncidentById(ctx context.Context, params GetIncidentByIdParams) (r GetIncidentByIdRes, _ error)
GetIncidentById implements getIncidentById operation.
Returns a single incidents.
GET /incidents/{incidentId}
func (UnimplementedHandler) GetIncidents ¶
func (UnimplementedHandler) GetIncidents(ctx context.Context) (r GetIncidentsRes, _ error)
GetIncidents implements getIncidents operation.
List of incidents.
GET /incidents
func (UnimplementedHandler) GetStatuses ¶
func (UnimplementedHandler) GetStatuses(ctx context.Context) (r GetStatusesRes, _ error)
GetStatuses implements getStatuses operation.
Получение списка статусов.
GET /statuses
func (UnimplementedHandler) UpdateIncident ¶
func (UnimplementedHandler) UpdateIncident(ctx context.Context, req *Incident) (r UpdateIncidentRes, _ error)
UpdateIncident implements updateIncident operation.
Update an existing incidents by Id.
PUT /incidents
type UpdateIncidentBadRequest ¶
type UpdateIncidentBadRequest struct{}
UpdateIncidentBadRequest is response for UpdateIncident operation.
type UpdateIncidentNotFound ¶
type UpdateIncidentNotFound struct{}
UpdateIncidentNotFound is response for UpdateIncident operation.
type UpdateIncidentRes ¶
type UpdateIncidentRes interface {
// contains filtered or unexported methods
}
type UpdateIncidentUnprocessableEntity ¶
type UpdateIncidentUnprocessableEntity struct{}
UpdateIncidentUnprocessableEntity is response for UpdateIncident operation.
Source Files
¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_operations_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_security_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go