Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DDoS ¶
type DDoS struct {
// contains filtered or unexported fields
}
DDoS - structure of value for DDoS attack
func New ¶
New - initialization of new DDoS attack
Example ¶
package main import ( "fmt" "os" "time" ddos "github.com/Konstantin8105/DDoS" ) func main() { workers := 1000 d, err := ddos.New("http://127.0.0.1:80", workers) if err != nil { panic(err) } d.Run() time.Sleep(time.Second) d.Stop() fmt.Fprintf(os.Stdout, "DDoS attack server: http://127.0.0.1:80\n") }
Output: DDoS attack server: http://127.0.0.1:80
Click to show internal directories.
Click to hide internal directories.