Documentation ¶
Overview ¶
Package breach checks for data breaches for a given account
Index ¶
Constants ¶
View Source
const HaveIBeenPwnedProvider provider = "Have I Been Pwned"
HaveIBeenPwnedProvider indicates the source is haveibeenpwned.com
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breach ¶
type Breach struct { Name string Domain string Date time.Time Count int Description string Items []string }
Breach is a single breach
type PwnedResponse ¶
type PwnedResponse []struct { Title string `json:"Title"` Name string `json:"Name"` Domain string `json:"Domain"` BreachDate string `json:"BreachDate"` AddedDate time.Time `json:"AddedDate"` ModifiedDate time.Time `json:"ModifiedDate"` PwnCount int `json:"PwnCount"` Description string `json:"Description"` DataClasses []string `json:"DataClasses"` IsVerified bool `json:"IsVerified"` IsFabricated bool `json:"IsFabricated"` IsSensitive bool `json:"IsSensitive"` IsActive bool `json:"IsActive"` IsRetired bool `json:"IsRetired"` IsSpamList bool `json:"IsSpamList"` LogoType string `json:"LogoType"` }
PwnedResponse is the raw response from haveibeenpwned.com
Click to show internal directories.
Click to hide internal directories.