Skip to content

Commit

Permalink
removing stuff that is not used and models.go
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRoute committed Nov 19, 2023
1 parent 6db2f85 commit e680b58
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkg/models/models.go
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
}

0 comments on commit e680b58

Please sign in to comment.