Registry / networking / huin-goupnp

huin-goupnp

JSON →
library1.3.0gogounverified

goupnp is a client library for interacting with UPnP services, with code-generated packages for common device profiles.

go get github.com/huin/goupnp
INSTALL
IMPORT
SIG · HUIN-GOUPNP
H
huin-goupnp
networkinggov1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

goupnp
github.com/huin/goupnp

Discover and query UPnP internet gateway devices.

package main import ( "context" "fmt" "github.com/huin/goupnp" "github.com/huin/goupnp/dcps/internetgateway1" ) func main() { clients, _, err := internetgateway1.NewWANPPPConnection1Clients() if err != nil { panic(err) } for _, client := range clients { status, err := client.GetStatusInfo(context.Background()) if err != nil { panic(err) } fmt.Printf("Connection status: %v\n", status.NewConnectionStatus) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
huin-goupnp — go get huin-goupnp · libregistry