as

package
v0.0.0-...-9c9dde5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrefixResponse

type PrefixResponse struct {
	Success bool `json:"success"`

	Result struct {
		PrefixOrigins []struct {
			Origin         int    `json:"origin"`
			PeerCount      int    `json:"peer_count"`
			Prefix         string `json:"prefix"`
			RPKIValidation string `json:"rpki_validation"`
		} `json:"prefix_origins"`
	} `json:"result"`
}

type RadarClient

type RadarClient struct {
	Client *http.Client
}

func NewRadarClient

func NewRadarClient(bearer string) *RadarClient

Creates a new CloudFlare Radar API client.

func (*RadarClient) ASLookupPrefixes

func (client *RadarClient) ASLookupPrefixes(asn int) ([]*net.IPNet, error)

Looks up prefixes associated

Jump to

Keyboard shortcuts

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