Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blacklisted ¶
type Blacklisted struct {
// contains filtered or unexported fields
}
Blacklisted provides a handle for the blacklist module
func (*Blacklisted) AddToBlacklist ¶
func (b *Blacklisted) AddToBlacklist(host string, score int)
AddToBlacklist sets a score in the inteldb table for a specific host
func (*Blacklisted) CheckBlacklisted ¶
func (b *Blacklisted) CheckBlacklisted(host string) int
CheckBlacklisted checks in the database to see if we've already got this address checked if it is then we return a positive (0 inclusive) score. If not then return non-positive.
type BlacklistedData ¶
type BlacklistedData struct {
ID bson.ObjectId `bson:"_id,omitempty"` // Ident
Host string `bson:"remote_host"` // can be a url or ip
Score int `bson:"score"` // Number of blacklists
}
BlacklistedData is a datatype designed to reduce reliance on ipvoid and urlvoid. It contains some information about addresses and urls which have already been checked agains those services