i2ldb

package
v0.0.0-...-5e0ec4f Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Updater *updater.Config // Holds all notification channels
	Config  *config.Config  // Shared default configuration

	DB map[string]bool
}

func NewDefaultConfig

func NewDefaultConfig(c *config.Config) *Config

func (*Config) Close

func (c *Config) Close()

Close closes the database.

func (*Config) GenerateUpdateURL

func (c *Config) GenerateUpdateURL() string

Generate the update url for the current product database.

func (*Config) Lookup

func (c *Config) Lookup(addr net.IP) ProxyDefaultQuery

func (*Config) Start

func (c *Config) Start() (*updater.Config, error)

type ProxyDefaultQuery

type ProxyDefaultQuery struct {
	Isp       string
	ProxyType string
	Domain    string
	UsageType string
	Asn       string
	As        string
	LastSeen  int
	Proxy     bool
}

Jump to

Keyboard shortcuts

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