rest

package
v0.0.0-...-549af0b Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2015 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PathStatus       = "status"
	PathInfo         = "info"
	PathSwitch       = "switch"
	PathReset        = "reset"
	PathFactoryReset = "factoryreset"
	PathConfig       = "config"
)

Functions

This section is empty.

Types

type DevInfo

type DevInfo struct {
	Wifimode    string `json:"wifimode"`
	Wifissid    string `json:"wifissid"`
	Wifipwd     string `json:"wifipwd"`
	Wifiip      string `json:"wifiip"`
	Wifinetmask string `json:"wifinetmask"`
	Wifigateway string `json:"wifigateway"`
	Device      string `json:"device"`
	Land        string `json:"land"`
	Serial      string `json:"serial"`
	Mac         string `json:"mac"`
	Ip          string `json:"ip"`
	Landhq      string `json:"landhq"`
}

func GetInfo

func GetInfo(url string, res DevInfo) (DevInfo, error)

type Status

type Status struct {
	Status string `json:"status"`
}

func GetStatus

func GetStatus(url string, res Status) (Status, error)

type SwStatus

type SwStatus struct {
	Val int `json:"val"`
}

func GetSwitch

func GetSwitch(url string, res SwStatus) (SwStatus, error)

Jump to

Keyboard shortcuts

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