blacklist

package module
v0.0.0-...-f014db2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: GPL-3.0 Imports: 5 Imported by: 10

README

rita-bl

Real Intelligence Threat Analytics -- Blacklist Database
Version 1.0-alpha

An API to store, maintain, and retrieve blacklists of different types.

Note: This a rewrite of rita-blacklist

Alt text

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blacklist

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

Blacklist is the main controller for rita-blacklist

func NewBlacklist

func NewBlacklist(db database.Handle, errorHandler func(error)) *Blacklist

NewBlacklist creates a new blacklist controller and connects to the backing database

func (*Blacklist) CheckEntries

func (b *Blacklist) CheckEntries(entryType list.BlacklistedEntryType, indexes ...string) map[string][]database.BlacklistResult

CheckEntries checks entries of different types against the blacklist database

func (*Blacklist) SetLists

func (b *Blacklist) SetLists(l ...list.List)

SetLists loads a set of blacklist sources into the blacklist controller

func (*Blacklist) SetRPCs

func (b *Blacklist) SetRPCs(rpcs ...rpc.RPC)

SetRPCs takes in a remote procedure calls for checking the index of the given entryType. This is meant for querying web services and outside programs. These functions will be ran when CheckEntries is called.

func (*Blacklist) Update

func (b *Blacklist) Update()

Update updates the blacklist database with the latest information pulled from the registered sources

Directories

Path Synopsis
sources
rpc

Jump to

Keyboard shortcuts

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