abuseipdb

package
v0.0.0-...-4dce753 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ReportUrl = "https://api.abuseipdb.com/api/v2/report"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(key string, interval time.Duration) *Client

func (*Client) Cooldown

func (c *Client) Cooldown() (time.Time, bool)

func (*Client) Enabled

func (c *Client) Enabled() bool

func (*Client) Interval

func (c *Client) Interval() time.Duration

func (*Client) Report

func (c *Client) Report(ctx context.Context, ip string, categories []string, timestamp time.Time, comment string) (int, error)

func (*Client) ReportFtp

func (c *Client) ReportFtp(ctx context.Context, ip string, timestamp time.Time, comment string) (int, error)

func (*Client) ReportHttp

func (c *Client) ReportHttp(ctx context.Context, ip string, timestamp time.Time, comment string) (int, error)

func (*Client) ReportSsh

func (c *Client) ReportSsh(ctx context.Context, ip string, timestamp time.Time, comment string) (int, error)

Jump to

Keyboard shortcuts

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