dnsbase

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(path string) (*reader, error)

func NewWriter

func NewWriter(path string) (*writer, error)

Types

type Categories

type Categories []string

func (*Categories) Scan

func (c *Categories) Scan(v interface{}) error

func (Categories) Value

func (c Categories) Value() (driver.Value, error)

type Domain

type Domain struct {
	ID         int64
	ParentID   int64
	Name       string
	Categories Categories
	Parent     *Domain
}

func (*Domain) String

func (d *Domain) String() string

func (*Domain) Unchain

func (d *Domain) Unchain() string

type LookupInterface

type LookupInterface interface {
	Lookup(domain string) (*Domain, error)
}

func NewFTLReader

func NewFTLReader(path string) (LookupInterface, error)

type WriterInterface

type WriterInterface interface {
	Write(domain string, cats Categories) error
	Close() error
}

Jump to

Keyboard shortcuts

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