ripe

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ripe provides ASN and IP information

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsASN added in v0.1.7

func IsASN(key string) bool

IsASN checks if the key is a number

Types

type ASN

type ASN struct {
	Number string
	Data   map[string]interface{}
}

ASN represents ASN information

func (*ASN) GetData

func (a *ASN) GetData() bool

GetData gets ASN information from RIPE NCC

func (*ASN) PrettyPrint

func (a *ASN) PrettyPrint()

PrettyPrint print ASN information (holder)

func (*ASN) Set added in v0.1.7

func (a *ASN) Set(r string)

Set ASN

type Prefix added in v0.1.7

type Prefix struct {
	Resource string
	Data     map[string]interface{}
}

Prefix represents prefix information

func (*Prefix) GetData added in v0.1.7

func (p *Prefix) GetData() bool

GetData gets prefix information from RIPE NCC

func (*Prefix) PrettyPrint added in v0.1.7

func (p *Prefix) PrettyPrint()

PrettyPrint print ASN information (holder)

func (*Prefix) Set added in v0.1.7

func (p *Prefix) Set(r string)

Set sets the resource value

Jump to

Keyboard shortcuts

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