spamhaus

package
v0.0.0-...-16bbc8a Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

spamhaus is a package designed for interacting with the Spamhaus spam blocklist. It should not be considered an exhaustive API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
}

func (Client) Lookup

func (c Client) Lookup(IP string) ([]string, error)

Lookup will query the Spamhaus Domain name System BlockList and return the Return Code associated with given IP.

IP is an IPv4 formatted address to be queried in the Spamhaus system.

The string return value is return code returned back by the Spamhaus system.

Jump to

Keyboard shortcuts

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