internal

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	VTConfig  vtsdk.Configuration        `mapstructure:"virustotal"`
	Abuseipdb abuseipdbsdk.Configuration `mapstructure:"abuseaipdb"`
}

func (*Api) HasApiKey

func (api *Api) HasApiKey() bool

type Client

type Client struct {
	VirusTotalClient *vtsdk.Client
	AbuseipdbClient  *abuseipdbsdk.Client
}

func (*Client) Query added in v1.4.1

func (client *Client) Query(value string, query QueryFunc) (outputTypes.Output, error)

func (*Client) QueryDomain

func (client *Client) QueryDomain(_domain string) (outputTypes.Output, error)

func (*Client) QueryHashes

func (client *Client) QueryHashes(_hash string) (outputTypes.Output, error)

func (*Client) QueryIp

func (client *Client) QueryIp(_ip string) (outputTypes.Output, error)

type Configuration

type Configuration struct {
	Api Api `mapstructure:"api"`
}

TODO: move this somewhere better

type QueryFunc added in v1.4.1

type QueryFunc func(string) (outputTypes.Output, error)

Directories

Path Synopsis
cmd
ip

Jump to

Keyboard shortcuts

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