about summary refs log tree commit diff
path: root/src/structs.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-11-02 21:13:31 +0100
committerEmile <hanemile@protonmail.com>2019-11-02 21:13:31 +0100
commit73e99546b88860f3797fdff4c3cb4ada430c8c2a (patch)
treec7d0b9179050850e5b37c7f995c29280baf5eb10 /src/structs.go
parent62dd4968d31225b32e8d6ae83c4f2830c88da6df (diff)
channels struct
Diffstat (limited to 'src/structs.go')
-rw-r--r--src/structs.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/structs.go b/src/structs.go
index 8ca9eb2..d2f76c2 100644
--- a/src/structs.go
+++ b/src/structs.go
@@ -39,3 +39,25 @@ type Response struct {
 	StatusCode int
 	FuzzWord   string
 }
+
+// Found contains a list of all found endpoints an an Amount value indicating
+// how many entries exist
+type Found struct {
+	Amount   int        `json:"amount"`
+	Endpoint []Endpoint `json:"endpoint"`
+}
+
+// Endpoint defines an endpoint that has been found
+type Endpoint struct {
+	Path  string `json:"path"`
+	Code  string `json:"code"`
+	Chars int    `json:"chars"`
+	Words int    `json:"words"`
+	Lines int    `json:"lines"`
+}
+
+type channels struct {
+	wordlistChannel chan string
+	printChannel    chan Response
+	doneChannel     chan int
+}