includes

package
v0.0.0-...-cf939c9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Key is the auth key

Functions

func Attack

func Attack(ctx *fasthttp.RequestCtx)

Attack is our endpoint for sending attacks

func GetMethods

func GetMethods(ctx *fasthttp.RequestCtx)

GetMethods is our endpoint for displaying methods

func Index

func Index(ctx *fasthttp.RequestCtx)

Index is

func Reload

func Reload(ctx *fasthttp.RequestCtx)

Reload is our endpoint for reloading the config

Types

type AttackRequest

type AttackRequest struct {
	Host   string `json:"host"`
	Time   int    `json:"time"`
	Port   int    `json:"port"`
	Method string `json:"method"`
}

AttackRequest is

type ConfigStruct

type ConfigStruct struct {
	Methods []Method `json:"methods"`
	MaxTime int      `json:"max_time"`
	Servers []Server `json:"servers"`
}

ConfigStruct is our struct for the JSON config

var Config ConfigStruct

Config is our configuration

type Method

type Method struct {
	Name    string   `json:"name"`
	Command string   `json:"command"`
	Servers []string `json:"servers"`
}

Method is our struct used for storing methods and thier commands

type Server

type Server struct {
	Name     string `json:"name"`
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
}

Server is our struct used for storing a servers login information

type StatusResponse

type StatusResponse struct {
	Status  bool   `json:"status"`
	Message string `json:"message"`
}

StatusResponse is

Jump to

Keyboard shortcuts

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