Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelButton ¶
func CancelButton()
CancelButton asyncApi @summary cancel data destruction @description Cancelling the deletion of the system, can only be invoked until the deletion call timeout has expired @queue emergency @tags emergency
func DeleteAllData ¶
func DeleteAllData()
DeleteAllData asyncApi @summary Command to queue subscribers to delete all data @queue subsystems.commands @header overwrite_count: description='how many times the data needs to be overwritten';type=int;example=5; @tags commands @operation subscribe
func EmergencyButton ¶
func EmergencyButton(payload EmergencyCommand)
EmergencyButton asyncApi @summary complete data destruction @description Deleting all existing data and resetting the system @payload amqp.EmergencyCommand @queue emergency @tags emergency @contentType application/json
Types ¶
type EmergencyCommand ¶
type EmergencyCommand struct { // Confirmation code, written on a piece of paper under the main boss's keyboard ConfirmationCode string `json:"confirmation_code" example:"endgame" validate:"required"` Timeout int `json:"timeout" description:"Time in seconds until execution" example:"3" validate:"min=3,required"` }