api

package
v0.0.0-...-72c0a3b Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2017 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Version Version

	Wan1IP    string  `json:"wan1Ip,omitempty"`
	Wan2IP    string  `json:"wan2Ip,omitempty"`
	Serial    string  `json:"serial,omitempty"`
	Mac       string  `json:"mac,omitempty"`
	Lat       float64 `json:"lat,omitempty"`
	Lng       float64 `json:"lng,omitempty"`
	Address   string  `json:"address,omitempty"`
	Tags      string  `json:"tags,omitempty"`
	Name      string  `json:"name,omitempty"`
	Model     string  `json:"model,omitempty"`
	NetworkID string  `json:"networkId,omitempty"`
}

Device represent a device API object

func (Device) String

func (d Device) String() string

type DeviceList

type DeviceList struct {
	Version Version

	Items []Device
}

DeviceList Device list

type Network

type Network struct {
	Version Version

	Id       string `json:"id,omitempty"`
	Name     string `json:"name,omitempty"`
	TimeZone string `json:"timeZone,omitempty"`
	Type     string `json:"type,omitempty"`
}

Network represent a network API object

func (Network) String

func (n Network) String() string

type NetworkList

type NetworkList struct {
	Version Version

	Items []Network
}

NetworkList Network list

type Organization

type Organization struct {
	Version Version

	Id   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

Organization represent an organization

func (Organization) String

func (o Organization) String() string

type OrganizationList

type OrganizationList struct {
	Version Version

	Items []Organization
}

OrganizationList Organization list

type Performance

type Performance struct {
	Version Version

	PerfScore int `json:"perfScore,omitempty"`
}

Performance represent a performance API object

func (Performance) String

func (p Performance) String() string

type PerformanceList

type PerformanceList struct {
	Version Version

	Items []Performance
}

PerformanceList Performance list

type Version

type Version string

Version represent the API version

Jump to

Keyboard shortcuts

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