data

package
Version: v0.0.0-...-18955cf Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const KEY_SIZE = 16

Variables

View Source
var (
	DEFAULT_KEY = Key([]byte{
		0xba, 0x86, 0xf2, 0xbb,
		0xe1, 0x07, 0xc7, 0xc5,
		0x7e, 0xb5, 0xf2, 0x69,
		0x07, 0x75, 0xc7, 0x12,
	})
)

Functions

This section is empty.

Types

type InformRequest

type InformRequest struct {
	BoardRevision        int         `json:"board_rev"`
	BootRomVersion       string      `json:"bootrom_version"`
	ConfigVersion        string      `json:"cfgversion"`
	CountryCode          int         `json:"country_code"`
	Default              bool        `json:"default"`
	DiscoveryResponse    bool        `json:"discovery_response"`
	Fingerprint          string      `json:"fingerprint"`
	FirmwareCapabilities int         `json:"fw_caps"`
	GuestToken           string      `json:"guest_token"`
	HasEth1              bool        `json:"has_eth1"`
	HasSpeaker           bool        `json:"has_speaker"`
	Hostname             string      `json:"hostname"`
	IntfTable            []Interface `json:"if_table"`
	InformUrl            string      `json:"inform_url"`
	Ip                   string      `json:"ip"`
	LastError            string      `json:"last_error"`
	Locating             bool        `json:"locating"`
	Mac                  MacAddr     `json:"mac"`
	Model                string      `json:"model"`
	ModelDisplay         string      `json:"model_display"`
	Netmask              string      `json:"netmask"`
	QrId                 string      `json:"qrid"`
	RadioTable           []Radio     `json:"radio_table"`
	RequiredVersion      string      `json:"required_version"`
	SelfrunBeacon        bool        `json:"selfrun_beacon"`
	Serial               string      `json:"serial"`
	SpectrumScanning     bool        `json:"spectrum_scanning"`
	State                int         `json:"state"`
	StreamToken          string      `json:"stream_token"`
	SysStats             SysStats    `json:"sys_stats"`
	Time                 int         `json:"time"`
	Uplink               string      `json:"uplink"`
	Uptime               int         `json:"uptime"`
	VApTable             []VAp       `json:"vap_table"`
	Version              string      `json:"version"`
	WifiCapabilities     int         `json:"wifi_caps"`
}

type InformResponse

type InformResponse interface {
	Message
	IsSuccess() bool
	HttpCode() int
}

func ResponseFromHttpCode

func ResponseFromHttpCode(code int) InformResponse

type Interface

type Interface struct {
	// contains filtered or unexported fields
}

type Key

type Key []byte

func (Key) IsDefault

func (k Key) IsDefault() bool

func (Key) IsValid

func (k Key) IsValid() bool

func (Key) String

func (k Key) String() string

type MacAddr

type MacAddr []byte

func (MacAddr) HexString

func (m MacAddr) HexString() string

func (MacAddr) IsValid

func (m MacAddr) IsValid() bool

func (MacAddr) MarshalJSON

func (m MacAddr) MarshalJSON() ([]byte, error)

func (MacAddr) String

func (m MacAddr) String() string

type ManagementConfig

type ManagementConfig map[string]string

func (ManagementConfig) MarshalJSON

func (m ManagementConfig) MarshalJSON() ([]byte, error)

type Message

type Message interface {
	Marshal() []byte
	String() string
}

func Unmarshal

func Unmarshal(data []byte) (Message, error)

type Radio

type Radio struct {
}

type SetParam

type SetParam struct {
	ManagementConfig `json:"mgmt_cfg"`
	ServerTime       int `json:"server_time_in_utc"`
	// contains filtered or unexported fields
}

func (SetParam) HttpCode

func (r SetParam) HttpCode() int

func (SetParam) IsSuccess

func (r SetParam) IsSuccess() bool

func (*SetParam) Marshal

func (msg *SetParam) Marshal() []byte

func (*SetParam) String

func (msg *SetParam) String() string

type SysStats

type SysStats struct {
}

type VAp

type VAp struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL