From 73e99546b88860f3797fdff4c3cb4ada430c8c2a Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 2 Nov 2019 21:13:31 +0100 Subject: channels struct --- src/structs.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 +} -- cgit 1.4.1