adsl

package module
v0.0.0-...-d03cf2f Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2014 License: GPL-2.0 Imports: 7 Imported by: 1

README

go-adsl

Build Status

Package adsl allows one to lookup ADSL/ADSL2+ exchange information by address.

API Documentation

Documentation

Overview

Package adsl allows one to lookup ADSL/ADSL2+ exchange information by address.

Index

Constants

View Source
const ADSL2ExchangesURL = "http://www.adsl2exchanges.com.au/addresslookupstart.php"

ADSL3ExchangeURL is the URL to the lookup site.

Variables

This section is empty.

Functions

This section is empty.

Types

type EquipmentProvider

type EquipmentProvider struct {
	Name      string
	Status    string
	Estimate  string
	Available bool
}

EquipmentProvider is a type representing a provider of ADSL equipment.

type Info

type Info struct {
	Exchange           string
	Zone               int
	Distance           float32
	CableLength        float32
	EstimatedSpeed     int
	NBNAvailable       bool
	EquipmentProviders []EquipmentProvider
}

Info represents ADSL exchange information for an address.

func Lookup

func Lookup(address string) (info *Info, err error)

Lookup takes an address and returns ADSL exchange information for it.

Jump to

Keyboard shortcuts

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