iptec

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 12 Imported by: 0

README

IPTEC

Searching for information about an IP address. Search through blacklists, open and closed databases.

TODO
  • When the module is initialized, plugins that need to be connected can be selected.
  • Implement module support.
  • Implement an http client that modules can use.
  • Add the ability to operate an http client through a proxy.
  • Implement a key-value cache with lifetime/redis support that modules can use.
  • Implement saving cache state to file system/redis
  • Implement a console interface.

License

MIT

Documentation

Index

Constants

View Source
const Version = "0.0.5"

Variables

This section is empty.

Functions

func NewCach

func NewCach() *cash

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New() *App

func (*App) Activate

func (a *App) Activate()

func (*App) Close

func (a *App) Close()

func (*App) Find

func (a *App) Find(address string) (*appReport, error)

func (*App) Use

func (a *App) Use(p Plugin)

type Cash

type Cash struct {
	// contains filtered or unexported fields
}

func (*Cash) Delete

func (m *Cash) Delete(key string) error

func (*Cash) Exist

func (m *Cash) Exist(key string) (bool, error)

func (*Cash) Get

func (m *Cash) Get(key string) ([]byte, error)

func (*Cash) Set

func (m *Cash) Set(key string, data []byte) error

type DnsClient

type DnsClient struct {
	Dns *dnsclient.Dns
}

type Plugin

type Plugin interface {
	Name() string
	Activate() error
	Find(net.IP) (PluginReport, error)
}

type PluginReport

type PluginReport interface {
	Points() int
}

type WebClient

type WebClient struct {
	Client *webclient.Client
}

type Сurator

type Сurator struct {
	Log clog.P
	// contains filtered or unexported fields
}

func (*Сurator) Plugin

func (m *Сurator) Plugin(pluginName string) (Plugin, error)

Directories

Path Synopsis
cmd
plugins
asn
dns
geo
tor

Jump to

Keyboard shortcuts

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