providers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByName

func ByName(names []string) []abuse.Provider

func Default

func Default() []abuse.Provider

Types

type Blackbox

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

func NewBlackbox

func NewBlackbox(opts ...Option) *Blackbox

func (*Blackbox) Check

func (p *Blackbox) Check(ctx context.Context, ip string) (*abuse.ProviderResult, error)

func (*Blackbox) Name

func (p *Blackbox) Name() string

func (*Blackbox) RateLimit

func (p *Blackbox) RateLimit() abuse.RateLimit

type DNSProvider

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

func NewCloudflareDNS

func NewCloudflareDNS(opts ...Option) *DNSProvider

func NewGoogleDNS

func NewGoogleDNS(opts ...Option) *DNSProvider

func (*DNSProvider) Check

func (p *DNSProvider) Check(ctx context.Context, name string) (*abuse.ProviderResult, error)

func (*DNSProvider) Name

func (p *DNSProvider) Name() string

func (*DNSProvider) RateLimit

func (p *DNSProvider) RateLimit() abuse.RateLimit

type IPAPI

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

func NewIPAPI

func NewIPAPI(opts ...Option) *IPAPI

func (*IPAPI) Check

func (p *IPAPI) Check(ctx context.Context, ip string) (*abuse.ProviderResult, error)

func (*IPAPI) Name

func (p *IPAPI) Name() string

func (*IPAPI) RateLimit

func (p *IPAPI) RateLimit() abuse.RateLimit

type IPAPICom

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

func NewIPAPICom

func NewIPAPICom(opts ...Option) *IPAPICom

func (*IPAPICom) Check

func (p *IPAPICom) Check(ctx context.Context, ip string) (*abuse.ProviderResult, error)

func (*IPAPICom) Name

func (p *IPAPICom) Name() string

func (*IPAPICom) RateLimit

func (p *IPAPICom) RateLimit() abuse.RateLimit

type IPLogs

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

func NewIPLogs

func NewIPLogs(opts ...Option) *IPLogs

func (*IPLogs) Check

func (p *IPLogs) Check(ctx context.Context, ip string) (*abuse.ProviderResult, error)

func (*IPLogs) Name

func (p *IPLogs) Name() string

func (*IPLogs) RateLimit

func (p *IPLogs) RateLimit() abuse.RateLimit

type IPLookup

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

func NewIPLookup

func NewIPLookup(opts ...Option) *IPLookup

func (*IPLookup) Check

func (p *IPLookup) Check(ctx context.Context, ip string) (*abuse.ProviderResult, error)

func (*IPLookup) Name

func (p *IPLookup) Name() string

func (*IPLookup) RateLimit

func (p *IPLookup) RateLimit() abuse.RateLimit

type IPPriv

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

func NewIPPriv

func NewIPPriv(opts ...Option) *IPPriv

func (*IPPriv) Check

func (p *IPPriv) Check(ctx context.Context, ip string) (*abuse.ProviderResult, error)

func (*IPPriv) Name

func (p *IPPriv) Name() string

func (*IPPriv) RateLimit

func (p *IPPriv) RateLimit() abuse.RateLimit

type Option

type Option func(*clientConfig)

func WithBaseURL

func WithBaseURL(baseURL string) Option

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

type RustyIP

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

func NewRustyIP

func NewRustyIP(opts ...Option) *RustyIP

func (*RustyIP) Check

func (p *RustyIP) Check(ctx context.Context, ip string) (*abuse.ProviderResult, error)

func (*RustyIP) Name

func (p *RustyIP) Name() string

func (*RustyIP) RateLimit

func (p *RustyIP) RateLimit() abuse.RateLimit

Jump to

Keyboard shortcuts

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