blacklist

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2014 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheGet

func CacheGet(cacheDir string, rawurl string, hours int) (file string, err error)

Types

type Blacklist

type Blacklist interface {
	Name() (name string)
	Init(cacheDir string) (err error)
	Check(urls []string) (hits []Hit)
}

func Init

func Init(cacheDir string) (bls []Blacklist)

type Google

type Google struct {
	Blacklist
	// contains filtered or unexported fields
}

func (*Google) Check

func (bl *Google) Check(urls []string) (hits []Hit)

func (*Google) Init

func (bl *Google) Init(cacheDir string) (err error)

func (*Google) Name

func (bl *Google) Name() (name string)

type Hit

type Hit struct {
	BlacklistName string
	Url           string
	Domain        string
	Type          string
	Ref           string
}

func Check

func Check(bls []Blacklist, urls []string) (hits []Hit)

type MalwareDomain

type MalwareDomain struct {
	Domain string
	Type   string
	Ref    string
}

type Malwaredomains

type Malwaredomains struct {
	Blacklist
	// contains filtered or unexported fields
}

func (*Malwaredomains) Check

func (bl *Malwaredomains) Check(urls []string) (hits []Hit)

func (*Malwaredomains) Init

func (bl *Malwaredomains) Init(cacheDir string) (err error)

func (*Malwaredomains) Name

func (bl *Malwaredomains) Name() (name string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL