handlers

package
v0.0.0-...-402b80f Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCreds

func AddCreds(c echo.Context) error

AddCreds godoc @Summary Add credentials @Description Add credentials to the database @Tags Creds @Accept json @Param credentials body []internalTypes.ICredentialsCreate true "ICredentialsCreate" @Success 200 {array} internalTypes.ICredentialsCreate @Failure 400 {object} internalTypes.ServerError @Failure 500 {object} internalTypes.ServerError @Router /creds [post]

func AddSlaves

func AddSlaves(c echo.Context) error

AddSlaves godoc (POST /slaves) @Summary Add slaves @Description Add slaves to the database @Tags Slaves @Accept json @Produce json @Success 200 {array} internalTypes.SlaveDTO @Failure 400 {string} string "Invalid request" @Failure 500 {string} string "Internal server error" @Router /slaves [post]

func DeleteCreds

func DeleteCreds(c echo.Context) error

DeleteCreds godoc @Summary Delete credentials by ID @Description IDeleteParams credentials from the database @Tags Creds @Param id query string true "ID of the credentials to delete" @Success 200 @Failure 400 {object} internalTypes.ServerError @Failure 500 {object} internalTypes.ServerError @Router /creds [delete]

func GetCreds

func GetCreds(c echo.Context) error

GetCreds godoc @Summary Get credentials @Description Get credentials from the database @Tags Creds @Param limit query int false "Limit the number of results" @Param page query int false "Offset number" @Success 200 {array} internalTypes.IReadCredentials @Failure 400 {object} internalTypes.ServerError @Failure 500 {object} internalTypes.ServerError @Router /creds [get]

func GetSlaves

func GetSlaves(c echo.Context) error

GetSlaves ... Get all slaves @Summary Get slaves @Description Get slaves from the database @Tags Slaves @Produce json @Param limit query int false "Limit the number of results" @Param page query int false "Offset number" @Success 200 {array} internalTypes.SlaveDTO @Failure 400 {string} string "Invalid request" @Failure 500 {string} string "Internal server error" @Router /slaves [get]

func HealthCheck

func HealthCheck(c echo.Context) error

HealthCheck @Summary API Health Check @Description API HealthCheck @Tags Health Check @Produce json @Success 200 {object} internalTypes.Health @Router /health [get]

func StartBruteForce

func StartBruteForce(c echo.Context) error

StartBruteForce godoc (POST /brute) @Summary Start new brute force action @Description Start brute force task @Tags Brute Force @Accept json @Produce json @Param credentials body []internalTypes.IBruteForceCreate true "IBruteForceCreate" @Success 200 {array} internalTypes.IBruteForceRead @Failure 400 {string} string "Invalid request" @Failure 500 {string} string "Internal server error" @Router /brute [post]

func UpdateCreds

func UpdateCreds(c echo.Context) error

UpdateCreds godoc @Summary Update credentials @Description Update credentials in the database @Tags Creds @Accept json @Param credentials body []internalTypes.IUpdateCredentials true "ICredentialsCreate" @Success 200 {array} internalTypes.IReadCredentials @Failure 400 {object} internalTypes.ServerError @Failure 500 {object} internalTypes.ServerError @Router /creds [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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