sources

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lists

type Lists struct {
	Suspicious  []string `json:"suspicious"`
	Advertising []string `json:"advertising"`
	Tracking    []string `json:"tracking"`
	Malicious   []string `json:"malicious"`
	Miners      []string `json:"miners"`
}

Lists represents the embedded JSON file containing default source lists.

func Defaults

func Defaults() *Lists

Defaults returns the default set of source lists.

The default set of source lists are embedded as statics/sources.json which we then simply unmarshal at runtime.

func (*Lists) All

func (d *Lists) All() []string

All returns a combined list of all default source lists.

func (*Lists) Len

func (d *Lists) Len() int

Len returns the combined number of default source lists.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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