ipurl

package
v0.0.0-...-324f9bf Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName = "ipurl"
	CacheTTL     = 3 * time.Hour
)
View Source
const IndentPipeHyphens = " |-----"

Variables

This section is empty.

Functions

func NewProviderClient

func NewProviderClient(c session.Session) (providers.ProviderClient, error)

Types

type Config

type Config struct {
	session.Session
	Host netip.Addr
	URLs []string
	// contains filtered or unexported fields
}

type HostSearchResult

type HostSearchResult map[netip.Prefix][]string

type ProviderClient

type ProviderClient struct {
	session.Session
}

func (*ProviderClient) CreateTable

func (c *ProviderClient) CreateTable(data []byte) (*table.Writer, error)

func (*ProviderClient) Enabled

func (c *ProviderClient) Enabled() bool

func (*ProviderClient) FindHost

func (c *ProviderClient) FindHost() ([]byte, error)

func (*ProviderClient) GetConfig

func (c *ProviderClient) GetConfig() *session.Session

func (*ProviderClient) Initialise

func (c *ProviderClient) Initialise() error

func (*ProviderClient) Priority

func (c *ProviderClient) Priority() int

type StoredPrefixes

type StoredPrefixes struct {
	Hash     string
	Prefixes map[netip.Prefix][]string
}

type StoredURLPrefixes

type StoredURLPrefixes struct {
	URL      string
	Prefixes []netip.Prefix
}

Jump to

Keyboard shortcuts

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