/linode-netint

A Go API client around Linode's undocumented Network Internals JSON feeds

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

linode-netint

GoDoc

This is the Linode netint API client. This uses the Linode network internals undocumented API.

The documentation on GoDoc should be fairly clear. Tests and examples coming soon!

Short Example

package main

import (
	"fmt"
	"os"

	"github.com/theckman/linode-netint"
)

func main() {
	// get system state as seen by Atlanta
	a, err := netint.Atlanta()

	if err != nil {
		fmt.Fprint(os.Stderr, "%v\n", err.Error())
		return
	}

	// show results for Atlanta <=> Dallas from Atlanta
	fmt.Printf("To Dallas: RTT: %d, Loss: %d, Jitter: %d\n", a.Dallas.RTT, a.Dallas.Loss, a.Dallas.Jitter)

	// Output To Dallas: RTT: 35, Loss: 0, Jitter: 0
}