database

package
v0.0.0-...-8781005 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDns

func AddDns(domain string, ipaddr *net.IP) error

func AddGlob

func AddGlob(g *models.GlobGroup) error

func Connect

func Connect()

func DeletePolicy

func DeletePolicy(src_ip string, glob_group string) error

func GetAllPolicies

func GetAllPolicies() *[]models.Policy

func GetDomainForIP

func GetDomainForIP(ip string) string

Retrieve the most likely domain for a given IP based on our DNS cache. This should be enhanced to include the source IP as well

func GetGlob

func GetGlob(name string) *models.GlobGroup

func GetGlobs

func GetGlobs() []models.GlobGroup

func GetIPsMatchingGlob

func GetIPsMatchingGlob(g *models.GlobGroup) []string

func GetIpPolicies

func GetIpPolicies(p *models.Policy) *[]models.IpPolicy

func GetPolicy

func GetPolicy(src_ip string, glob_group string) *models.Policy

func GetSrcGlobUsage

func GetSrcGlobUsage(rate int, mins int, k int, above bool) model.Vector

func UpdatePolicy

func UpdatePolicy(src_ip string, glob_group string, class int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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