amqp

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 1 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL