Documentation
¶
Overview ¶
Package api provides a general API result.
Index ¶
Constants ¶
View Source
const ( Clean = "clean" Unknown = "unknown" Unrated = "unrated" Breached = "breached" Suspicious = "suspicious" )
Variables ¶
View Source
var Timeout = time.Second * 30
Timeout to use (general)
View Source
var UserAgent = "check"
UserAgent to use (general)
Functions ¶
Types ¶
type Result ¶
type Result struct {
Verdict string `json:"verdict,omitempty"`
Details map[string]string `json:"details,omitempty"`
Stats struct {
All int `json:"all,omitempty"`
Bad int `json:"bad,omitempty"`
} `json:"stats,omitempty"`
}
Result of API call.
Click to show internal directories.
Click to hide internal directories.