viamupnp

package
v0.0.0-...-e182c34 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package viamupnp is for discovering and using upnp cameras

Index

Constants

View Source
const FindAllTestKey = FindAllTestKeyStruct("findAllTestKey1231231231231")

FindAllTestKey - for testing.

Variables

This section is empty.

Functions

func FindHost

func FindHost(ctx context.Context, logger logging.Logger, query DeviceQuery) (string, error)

FindHost looks for a host matching the query, returns just the host/ip (no port).

Types

type DeviceQuery

type DeviceQuery struct {
	ModelName    string `json:"model_name"`
	Manufacturer string `json:"manufacturer"`
	SerialNumber string `json:"serial_number"`
	Network      string `json:"network"`
}

DeviceQuery specifics a query for a network device.

type FindAllTestKeyStruct

type FindAllTestKeyStruct string

FindAllTestKeyStruct - for testing.

type UPNPDevice

type UPNPDevice struct {
	Service ssdp.Service
	Desc    *deviceDesc
}

UPNPDevice is a UPNPDevice device.

func (*UPNPDevice) Matches

func (pc *UPNPDevice) Matches(query DeviceQuery) bool

Matches returns if the UPNPDevice matches the query.

Jump to

Keyboard shortcuts

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