Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Key string
Key is the auth key
Functions ¶
func GetMethods ¶
func GetMethods(ctx *fasthttp.RequestCtx)
GetMethods is our endpoint for displaying methods
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 ¶
StatusResponse is
Click to show internal directories.
Click to hide internal directories.