Documentation
¶
Index ¶
Constants ¶
View Source
const (
// BadRequest - HTTP Bad Request
BadRequest = 400
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
Credential - A result credential
func (*Credential) IsBlank ¶
func (cred *Credential) IsBlank() bool
IsBlank - Password appears to be blank
func (*Credential) IsHash ¶
func (cred *Credential) IsHash() bool
IsHash - Password *appears* to a hash
type QuerySet ¶
type QuerySet struct {
Email string `json:"email"`
Domain string `json:"domain"`
User string `json:"user"`
Page int `json:"page"`
}
QuerySet - A LeakDB query
type ResultSet ¶
type ResultSet struct {
Count int `json:"count"`
Page int `json:"page"`
Pages int `json:"pages"`
Results []Credential `json:"results"`
}
ResultSet - Result of a query
type Server ¶
type Server struct {
JSONFile string
EmailIndex string
UserIndex string
DomainIndex string
TLSCertificate string
TLSKey string
}
Server - A server object
func (*Server) SearchHandler ¶
func (s *Server) SearchHandler(resp http.ResponseWriter, req *http.Request)
SearchHandler - Process search requests
Click to show internal directories.
Click to hide internal directories.