meshviewerFFRGB

package
Version: v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: AGPL-3.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

View Source
const (
	LINK_TYPE_WIRELESS = "wifi"
	LINK_TYPE_TUNNEL   = "vpn"
	LINK_TYPE_FALLBACK = "other"
)

Variables

This section is empty.

Functions

func Register

func Register(configuration map[string]interface{}) (output.Output, error)

Types

type Autoupdater

type Autoupdater struct {
	Enabled bool   `json:"enabled"`
	Branch  string `json:"branch,omitempty"`
}

Autoupdater

type Config

type Config map[string]interface{}

func (Config) Path

func (c Config) Path() string

type Firmware

type Firmware struct {
	Base    string `json:"base,omitempty"`
	Release string `json:"release,omitempty"`
}

Firmware out of software

type Link struct {
	Type          string  `json:"type"`
	Source        string  `json:"source"`
	Target        string  `json:"target"`
	SourceTQ      float32 `json:"source_tq"`
	TargetTQ      float32 `json:"target_tq"`
	SourceAddress string  `json:"source_addr"`
	TargetAddress string  `json:"target_addr"`
}

Link

type Location

type Location struct {
	Longitude float64 `json:"longitude,omitempty"`
	Latitude  float64 `json:"latitude,omitempty"`
}

Location struct

type Meshviewer

type Meshviewer struct {
	Timestamp jsontime.Time `json:"timestamp"`
	Nodes     []*Node       `json:"nodes"`
	Links     []*Link       `json:"links"`
}

type Node

type Node struct {
	Firstseen      jsontime.Time `json:"firstseen"`
	Lastseen       jsontime.Time `json:"lastseen"`
	IsOnline       bool          `json:"is_online"`
	IsGateway      bool          `json:"is_gateway"`
	Clients        uint32        `json:"clients"`
	ClientsWifi24  uint32        `json:"clients_wifi24"`
	ClientsWifi5   uint32        `json:"clients_wifi5"`
	ClientsOthers  uint32        `json:"clients_other"`
	RootFSUsage    float64       `json:"rootfs_usage"`
	LoadAverage    float64       `json:"loadavg"`
	MemoryUsage    *float64      `json:"memory_usage,omitempty"`
	Uptime         jsontime.Time `json:"uptime,omitempty"`
	GatewayNexthop string        `json:"gateway_nexthop,omitempty"`
	GatewayIPv4    string        `json:"gateway,omitempty"`
	GatewayIPv6    string        `json:"gateway6,omitempty"`
	NodeID         string        `json:"node_id"`
	MAC            string        `json:"mac"`
	Addresses      []string      `json:"addresses"`
	SiteCode       string        `json:"site_code,omitempty"`
	DomainCode     string        `json:"-"`
	Hostname       string        `json:"hostname"`
	Owner          string        `json:"owner,omitempty"`
	Location       *Location     `json:"location,omitempty"`
	Firmware       Firmware      `json:"firmware,omitempty"`
	Autoupdater    Autoupdater   `json:"autoupdater"`
	Nproc          int           `json:"nproc"`
	Model          string        `json:"model,omitempty"`
	VPN            bool          `json:"vpn"`
}

func NewNode

func NewNode(nodes *runtime.Nodes, n *runtime.Node) *Node

type Output

type Output struct {
	output.Output
	// contains filtered or unexported fields
}

func (*Output) Save

func (o *Output) Save(nodes *runtime.Nodes)

Jump to

Keyboard shortcuts

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