upnp

package
v0.0.0-...-3966bfa Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayDevice

type GatewayDevice struct {
	// contains filtered or unexported fields
}

GatewayDevice represents a scanned gateway device

func (GatewayDevice) String

func (device GatewayDevice) String() string

String returns human-readable string representation of gatewayDevice

func (GatewayDevice) ToMap

func (device GatewayDevice) ToMap() map[string]string

ToMap returns a map representation of the device

type GatewayLoader

type GatewayLoader struct {
	// contains filtered or unexported fields
}

GatewayLoader fetches the gateways once and keeps them stored for further use

func (*GatewayLoader) Get

func (gl *GatewayLoader) Get() []GatewayDevice

Get returns the gateway devices

func (*GatewayLoader) HumanReadable

func (gl *GatewayLoader) HumanReadable() []map[string]string

HumanReadable returns a human readable representation of the devices

Jump to

Keyboard shortcuts

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