database

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBlockedDomain

func AddBlockedDomain(db *sql.DB, domain string) error

adds a domain to the blocked list in the database

func GetBlockedDomains

func GetBlockedDomains(db *sql.DB) (map[string]struct{}, error)

retrieves all blocked domains from the database

func InitDB

func InitDB() (*sql.DB, error)

func RemoveBlockedDomain

func RemoveBlockedDomain(db *sql.DB, domain string) error

removes a domain from the blocked list in the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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