app

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountIEC added in v0.2.1

func ByteCountIEC(b int64) string

func ByteCountSI added in v0.2.1

func ByteCountSI(b int64) string

func VersionString added in v0.3.0

func VersionString() string

Types

type App

type App struct {
	*client.UISPAPI
	MeshAPIClient *nycmesh.Client
	// contains filtered or unexported fields
}

func New

func New(cmd *cobra.Command, args []string) (*App, error)

func (*App) ConsoleWriteObject

func (a *App) ConsoleWriteObject(obj string) error

func (*App) ListSectorsByFrequency

func (a *App) ListSectorsByFrequency() error

TODO(gabe): implement me

func (*App) MeshAPIDevices added in v0.2.2

func (a *App) MeshAPIDevices(ids ...string) (map[int]*nycmesh.Device, error)

func (*App) MeshAPINodes added in v0.3.0

func (a *App) MeshAPINodes(ids ...string) (map[int]nycmesh.Node, error)

func (*App) SetSectorFrequency

func (a *App) SetSectorFrequency(frequency string, devids ...[]string) error

TODO(gabe): implement me

func (*App) Tableify

func (a *App) Tableify(headers []string, data [][]string) error

func (*App) UISPDevices added in v0.2.2

func (a *App) UISPDevices() ([]*models.DeviceStatusOverview, error)

type FusedDevice added in v0.2.2

type FusedDevice struct {
	NodeNumber    int                          `json:"nn"`
	MeshAPINode   *nycmesh.Node                `json:"meshapi_node"`
	MeshAPIDevice *nycmesh.Device              `json:"meshapi_device"`
	UISP          *models.DeviceStatusOverview `json:"uisp_device"`
}

Jump to

Keyboard shortcuts

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