-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removing stuff that is not used and models.go
- Loading branch information
1 parent
6db2f85
commit e680b58
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package models | ||
|
||
import ( | ||
"html/template" | ||
|
||
"github.com/CyberRoute/bruter/pkg/shodan" | ||
) | ||
|
||
// Homargs holds data to be sent to the home page | ||
type HomeArgs struct { | ||
Ipv4 string | ||
Ipv6 string | ||
Host shodan.Response | ||
Headers map[string]interface{} | ||
Mx map[string]uint16 | ||
Ftp string | ||
Ssh string | ||
Mysql string | ||
Smtp string | ||
Pop string | ||
Irc string | ||
} | ||
|
||
// Template data holds data sent from handlers to templates | ||
type TemplateData struct { | ||
StringMap map[string]string | ||
IntMap map[string]int | ||
FloatMap map[string]float32 | ||
Data map[string]interface{} | ||
HeadersMap map[string]interface{} | ||
FtpBannerGrabberMap map[string]interface{} | ||
SSLInfo []map[string]interface{} | ||
WhoisInfo template.HTML | ||
} | ||
|
||
// Urls holds data to be sent to the consumer api endpoint | ||
type Url struct { | ||
Id int `json:"id"` | ||
Path string `json:"path"` | ||
Status float64 `json:"status"` | ||
Progress float32 `json:"progress"` | ||
Data string `json:"data"` | ||
} | ||
|
||
type AllUrls struct { | ||
Urls []*Url | ||
} |