Documentation ¶
Index ¶
- type Implementation
- func (i *Implementation) CreateComponent(ctx echo.Context) error
- func (i *Implementation) CreateImpactType(ctx echo.Context) error
- func (i *Implementation) CreateIncident(ctx echo.Context) error
- func (i *Implementation) CreateIncidentUpdate(ctx echo.Context, incidentID api.IncidentIdPathParameter) error
- func (i *Implementation) CreatePhaseList(ctx echo.Context) error
- func (i *Implementation) DeleteComponent(ctx echo.Context, componentID api.ComponentIdPathParameter) error
- func (i *Implementation) DeleteImpactType(ctx echo.Context, impactTypeID api.ImpactTypeIdPathParameter) error
- func (i *Implementation) DeleteIncident(ctx echo.Context, incidentID api.IncidentIdPathParameter) error
- func (i *Implementation) DeleteIncidentUpdate(ctx echo.Context, incidentID api.IncidentIdPathParameter, ...) error
- func (i *Implementation) GetComponent(ctx echo.Context, componentID string) error
- func (i *Implementation) GetComponents(ctx echo.Context) error
- func (i *Implementation) GetImpactType(ctx echo.Context, impactTypeID api.ImpactTypeIdPathParameter) error
- func (i *Implementation) GetImpactTypes(ctx echo.Context) error
- func (i *Implementation) GetIncident(ctx echo.Context, incidentID string) error
- func (i *Implementation) GetIncidentUpdate(ctx echo.Context, incidentID api.IncidentIdPathParameter, ...) error
- func (i *Implementation) GetIncidentUpdates(ctx echo.Context, incidentID api.IncidentIdPathParameter) error
- func (i *Implementation) GetIncidents(ctx echo.Context, params api.GetIncidentsParams) error
- func (i *Implementation) GetPhaseList(ctx echo.Context, params api.GetPhaseListParams) error
- func (i *Implementation) UpdateComponent(ctx echo.Context, componentID api.ComponentIdPathParameter) error
- func (i *Implementation) UpdateImpactType(ctx echo.Context, impactTypeID api.ImpactTypeIdPathParameter) error
- func (i *Implementation) UpdateIncident(ctx echo.Context, incidentID api.IncidentIdPathParameter) error
- func (i *Implementation) UpdateIncidentUpdate(ctx echo.Context, incidentID api.IncidentIdPathParameter, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementation ¶
type Implementation struct {
// contains filtered or unexported fields
}
Implementation holds all functions definded by the api.ServerInterface and other needed components.
func New ¶
func New(dbCon *gorm.DB, logger *zerolog.Logger) *Implementation
New creates a new Implementation Object with the setted dbCon.
func (*Implementation) CreateComponent ¶
func (i *Implementation) CreateComponent(ctx echo.Context) error
CreateComponent handles creation of components.
func (*Implementation) CreateImpactType ¶
func (i *Implementation) CreateImpactType(ctx echo.Context) error
CreateImpactType handles creation of impact types.
func (*Implementation) CreateIncident ¶
func (i *Implementation) CreateIncident(ctx echo.Context) error
CreateIncident handles creation of incidents.
func (*Implementation) CreateIncidentUpdate ¶
func (i *Implementation) CreateIncidentUpdate(ctx echo.Context, incidentID api.IncidentIdPathParameter) error
CreateIncidentUpdate handles updates to an update for one incident.
func (*Implementation) CreatePhaseList ¶
func (i *Implementation) CreatePhaseList(ctx echo.Context) error
CreatePhaseList handles creation of phase lists.
func (*Implementation) DeleteComponent ¶
func (i *Implementation) DeleteComponent(ctx echo.Context, componentID api.ComponentIdPathParameter) error
DeleteComponent handles deletion of components.
func (*Implementation) DeleteImpactType ¶
func (i *Implementation) DeleteImpactType(ctx echo.Context, impactTypeID api.ImpactTypeIdPathParameter) error
DeleteImpactType handles deletion of impact types.
func (*Implementation) DeleteIncident ¶
func (i *Implementation) DeleteIncident(ctx echo.Context, incidentID api.IncidentIdPathParameter) error
DeleteIncident handles deletion of incidents.
func (*Implementation) DeleteIncidentUpdate ¶
func (i *Implementation) DeleteIncidentUpdate( ctx echo.Context, incidentID api.IncidentIdPathParameter, incidentUpdateOrder api.IncidentUpdateOrderPathParameter, ) error
DeleteIncidentUpdate handles deletion of an update for one incident.
func (*Implementation) GetComponent ¶
func (i *Implementation) GetComponent(ctx echo.Context, componentID string) error
GetComponent retrieves a specific component by ID.
func (*Implementation) GetComponents ¶
func (i *Implementation) GetComponents(ctx echo.Context) error
GetComponents retrieves a list of all components.
func (*Implementation) GetImpactType ¶
func (i *Implementation) GetImpactType(ctx echo.Context, impactTypeID api.ImpactTypeIdPathParameter) error
GetImpactType retrieves a specific impact type by ID.
func (*Implementation) GetImpactTypes ¶
func (i *Implementation) GetImpactTypes(ctx echo.Context) error
GetImpactTypes retrieves a list of all impact types.
func (*Implementation) GetIncident ¶
func (i *Implementation) GetIncident(ctx echo.Context, incidentID string) error
GetIncident retrieves a specific incident by ID.
func (*Implementation) GetIncidentUpdate ¶
func (i *Implementation) GetIncidentUpdate( ctx echo.Context, incidentID api.IncidentIdPathParameter, incidentUpdateOrder api.IncidentUpdateOrderPathParameter, ) error
GetIncidentUpdate retrieves a specific update for one incident.
func (*Implementation) GetIncidentUpdates ¶
func (i *Implementation) GetIncidentUpdates(ctx echo.Context, incidentID api.IncidentIdPathParameter) error
GetIncidentUpdates retrieves a list of all updates for one incident.
func (*Implementation) GetIncidents ¶
func (i *Implementation) GetIncidents(ctx echo.Context, params api.GetIncidentsParams) error
GetIncidents retrieves a list of all active incidents between a start and end.
func (*Implementation) GetPhaseList ¶
func (i *Implementation) GetPhaseList(ctx echo.Context, params api.GetPhaseListParams) error
GetPhaseList retrieves a list of all phases.
func (*Implementation) UpdateComponent ¶
func (i *Implementation) UpdateComponent(ctx echo.Context, componentID api.ComponentIdPathParameter) error
UpdateComponent handles updates of components.
func (*Implementation) UpdateImpactType ¶
func (i *Implementation) UpdateImpactType(ctx echo.Context, impactTypeID api.ImpactTypeIdPathParameter) error
UpdateImpactType handles updates of impact types.
func (*Implementation) UpdateIncident ¶
func (i *Implementation) UpdateIncident(ctx echo.Context, incidentID api.IncidentIdPathParameter) error
UpdateIncident handles updates of incidents.
func (*Implementation) UpdateIncidentUpdate ¶
func (i *Implementation) UpdateIncidentUpdate( ctx echo.Context, incidentID api.IncidentIdPathParameter, incidentUpdateOrder api.IncidentUpdateOrderPathParameter, ) error
UpdateIncidentUpdate handles updates of updates for one incident.