model

package
v0.0.0-...-8bc5258 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	MacAddress      string
	DownloadTraffic uint64
	UploadTraffic   uint64
}

type Devices

type Devices []Device

func (Devices) Decode

func (d Devices) Decode(data []byte) (ds Devices, err error)

func (Devices) Encode

func (d Devices) Encode() (data []byte, err error)

func (Devices) Len

func (d Devices) Len() int

func (Devices) Less

func (d Devices) Less(i, j int) bool

func (Devices) Swap

func (d Devices) Swap(i, j int)

Jump to

Keyboard shortcuts

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