provider

package
v0.0.0-...-8887655 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: ISC Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ARINWhois = "rr.arin.net:43"

Variables

This section is empty.

Functions

This section is empty.

Types

type IANA

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

IANA access service.

func NewIANA

func NewIANA(limit int) *IANA

func (*IANA) Who

func (i *IANA) Who(ctx context.Context, asn uint64) (IRR, error)

Who returns the responsible IRR (or UNKNOWN) for a given AS.

type IRR

type IRR int

Possible IRRs that AS blocks can be delegated to.

const (
	IRR_UNKNOWN IRR = iota
	IRR_ARIN
	IRR_RIPE
)

func (IRR) String

func (i IRR) String() string

type Provider

type Provider interface {
	// Return a proto response for a given AS.
	Query(ctx context.Context, as uint64) (*pb.IRRQueryResponse, error)
}

Provider is the interface exposed to the service by IRR proxies.

func NewARIN

func NewARIN(limit int) Provider

func NewRIPE

func NewRIPE(limit int) Provider

Jump to

Keyboard shortcuts

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