inventoryviewer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, cfg Config) error

Execute starts the inventory viewer web server and blocks until the context is cancelled.

Types

type Config

type Config struct {
	Addr   string
	DbConn pq.Config
}

Config holds the configuration for the inventory viewer.

type DeviceRow

type DeviceRow struct {
	ID             int64  `json:"id"`
	DeviceType     string `json:"device_type"`
	DeviceName     string `json:"device_name"`
	HostIdentifier string `json:"host_identifier"`
	SerialNumber   string `json:"serial_number"`
	Attributes     string `json:"attributes"`
}

DeviceRow represents a row from the inventory table.

type NeighborRow

type NeighborRow struct {
	ID             int64  `json:"id"`
	HostIdentifier string `json:"host_identifier"`
	LocalInterface string `json:"local_interface"`
	Attributes     string `json:"attributes"`
}

NeighborRow represents a row from the neighbors table.

Jump to

Keyboard shortcuts

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