util

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Overview

Package util implements some misc functoins for net-upnp-go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUUID

func CreateUUID() string

CreateUUID returns a UUID.

func GetAbsoluteURLFromBaseAndPath

func GetAbsoluteURLFromBaseAndPath(base string, path string) (*url.URL, error)

func GetAvailableInterfaceForAddr

func GetAvailableInterfaceForAddr(fromAddr string) (net.Interface, error)

func GetAvailableInterfaces

func GetAvailableInterfaces() ([]net.Interface, error)

func GetInterfaceAddress

func GetInterfaceAddress(ifi net.Interface) (string, error)

func GetServer

func GetServer() string

func GetUserAgent

func GetUserAgent() string

func IsIPv6Address

func IsIPv6Address(addr string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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