lg

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2016 License: MIT Imports: 10 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 Level3 Carrier Looking Glass ASN 3356

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

Index

Constants

This section is empty.

Variables

This section is empty.

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 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 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