deviceR

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateOnline  = "online"
	StateOffline = "offline"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Counters

type Counters struct {
	All        int
	Online     int
	Offline    int
	Watched    int
	Unwatched  int
	Pingable   int
	Unpingable int
}

func GetListCounts

func GetListCounts() *Counters

type ListItem

type ListItem struct {
	ID         int64
	Name       string
	State      string
	Hostname   string
	Icon       string
	Watch      bool
	MACAddress string
	Vendor     string
	IPAddress  string
	LastSeenAt time.Time
}

func GetList

func GetList(sortColumn string, sortDirection string, filter string) []ListItem

func (*ListItem) IconClass

func (self *ListItem) IconClass() string

Jump to

Keyboard shortcuts

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