lg

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package lg provides looking glass methods for selected looking glasses Cogent Carrier Looking Glass ASN 174

Package lg provides looking glass methods for selected looking glasses KPN Looking Glass ASN 1299

Package lg provides looking glass methods for selected looking glasses Level3 Carrier Looking Glass ASN 3356

Package lg provides looking glass methods for selected looking glasses NTT communications Looking Glass

Package lg provides looking glass methods for selected looking glasses Telia Carrier Looking Glass ASN 1299

Index

Constants

This section is empty.

Variables

View Source
var KPNDefaultNode = "Amsterdam (NL)"
View Source
var NTTDefaultNode = "Los Angeles, CA - US"

Functions

This section is empty.

Types

type Cogent

type Cogent struct {
	Host  string
	IPv   string
	Node  string
	Nodes []string
}

A Cogent represents a telia looking glass request

func (*Cogent) BGP added in v0.1.7

func (p *Cogent) BGP() chan string

BGP gets bgp information from cogent

func (*Cogent) ChangeNode

func (p *Cogent) ChangeNode(node string) bool

ChangeNode set new requested node

func (*Cogent) FetchNodes

func (p *Cogent) FetchNodes() (map[string]string, map[string]string)

FetchNodes returns all available nodes through HTTP

func (*Cogent) GetDefaultNode

func (p *Cogent) GetDefaultNode() string

GetDefaultNode returns telia default node

func (*Cogent) GetNodes

func (p *Cogent) GetNodes() []string

GetNodes returns all Cogent nodes (US and International)

func (*Cogent) Ping

func (p *Cogent) Ping() (string, error)

Ping tries to connect Cogent's ping looking glass through HTTP Returns the result

func (*Cogent) Set

func (p *Cogent) Set(host, version string)

Set configures host and ip version

func (*Cogent) Trace added in v0.1.7

func (p *Cogent) Trace() chan string

Trace gets traceroute information from Cogent

type KPN added in v0.2.7

type KPN struct {
	Host  string
	IPv   string
	Node  string
	Nodes []string
}

A KPN represents a KPN looking glass request

func (*KPN) BGP added in v0.2.7

func (p *KPN) BGP() chan string

BGP gets bgp information from KPN

func (*KPN) ChangeNode added in v0.2.7

func (p *KPN) ChangeNode(node string) bool

ChangeNode set new requested node

func (*KPN) FetchNodes added in v0.2.7

func (p *KPN) FetchNodes() map[string]string

FetchNodes returns all available nodes through HTTP

func (*KPN) GetDefaultNode added in v0.2.7

func (p *KPN) GetDefaultNode() string

GetDefaultNode returns KPN default node

func (*KPN) GetNodes added in v0.2.7

func (p *KPN) GetNodes() []string

GetNodes returns all KPN nodes (US and International)

func (*KPN) Ping added in v0.2.7

func (p *KPN) Ping() (string, error)

Ping tries to connect KPN's ping looking glass through HTTP Returns the result

func (*KPN) Set added in v0.2.7

func (p *KPN) Set(host, version string)

Set configures host and ip version

func (*KPN) Trace added in v0.2.7

func (p *KPN) Trace() chan string

Trace gets traceroute information from KPN

type Level3

type Level3 struct {
	Host  string
	CIDR  string
	IPv   string
	Count string
	Node  string
	Nodes []string
}

A Level3 represents a telia looking glass request

func (*Level3) BGP added in v0.1.7

func (p *Level3) BGP() chan string

BGP gets bgp information

func (*Level3) ChangeNode

func (p *Level3) ChangeNode(node string) bool

ChangeNode set new requested node

func (*Level3) FetchNodes

func (p *Level3) FetchNodes() map[string]string

FetchNodes returns all available nodes through HTTP

func (*Level3) GetDefaultNode

func (p *Level3) GetDefaultNode() string

GetDefaultNode returns telia default node

func (*Level3) GetNodes

func (p *Level3) GetNodes() []string

GetNodes returns all level3 nodes (US and International)

func (*Level3) Ping

func (p *Level3) Ping() (string, error)

Ping tries to connect Level3's ping looking glass through HTTP Returns the result

func (*Level3) Set

func (p *Level3) Set(host, version string)

Set configures host and ip version

func (*Level3) Trace added in v0.1.7

func (p *Level3) Trace() chan string

Trace gets traceroute information from level3

type NTT added in v0.2.7

type NTT struct {
	Host  string
	IPv   string
	Node  string
	Nodes []string
}

func (*NTT) BGP added in v0.2.7

func (p *NTT) BGP() chan string

BGP gets bgp information from NTT

func (*NTT) ChangeNode added in v0.2.7

func (p *NTT) ChangeNode(node string) bool

ChangeNode set new requested node

func (*NTT) FetchNodes added in v0.2.7

func (p *NTT) FetchNodes() map[string]string

FetchNodes returns all available nodes through HTTP

func (*NTT) GetDefaultNode added in v0.2.7

func (p *NTT) GetDefaultNode() string

GetDefaultNode returns NTT default node

func (*NTT) GetNodes added in v0.2.7

func (p *NTT) GetNodes() []string

GetNodes returns all NTT nodes (US and International)

func (*NTT) Ping added in v0.2.7

func (p *NTT) Ping() (string, error)

Ping tries to connect NTT's ping looking glass through HTTP Returns the result

func (*NTT) Set added in v0.2.7

func (p *NTT) Set(host, version string)

Set configures host and ip version

func (*NTT) Trace added in v0.2.7

func (p *NTT) Trace() chan string

Trace gets traceroute information from NTT

type Telia

type Telia struct {
	Host  string
	IPv   string
	Node  string
	Nodes []string
}

A Telia represents a telia looking glass request

func (*Telia) BGP added in v0.1.7

func (p *Telia) BGP() chan string

BGP gets bgp information from Telia

func (*Telia) ChangeNode

func (p *Telia) ChangeNode(node string) bool

ChangeNode set new requested node

func (*Telia) FetchNodes

func (p *Telia) FetchNodes() map[string]string

FetchNodes returns all available nodes through HTTP

func (*Telia) GetDefaultNode

func (p *Telia) GetDefaultNode() string

GetDefaultNode returns telia default node

func (*Telia) GetNodes

func (p *Telia) GetNodes() []string

GetNodes returns all Telia nodes (US and International)

func (*Telia) Ping

func (p *Telia) Ping() (string, error)

Ping tries to connect Telia's ping looking glass through HTTP Returns the result

func (*Telia) Set

func (p *Telia) Set(host, version string)

Set configures host and ip version

func (*Telia) Trace added in v0.1.7

func (p *Telia) Trace() chan string

Trace gets traceroute information from Telia

Jump to

Keyboard shortcuts

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