about summary refs log tree commit diff
diff options
context:
space:
mode:
-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
+}