wl

package
v0.0.0-...-23a4ccf Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WhitelistDB

type WhitelistDB struct {
	Name  string
	WlURL string
	// contains filtered or unexported fields
}

WhitelistDB stores domains imported from whitelist

func (*WhitelistDB) Init

func (w *WhitelistDB) Init(file string)

Init Initializes whitelist db. Default to CISCO Umbrella top sites.

func (*WhitelistDB) List

func (w *WhitelistDB) List()

List returns whitelist entries

func (*WhitelistDB) Lookup

func (w *WhitelistDB) Lookup(domain string) int

Lookup returns the rank in WL if entry is present

Jump to

Keyboard shortcuts

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