Documentation
¶
Index ¶
Constants ¶
View Source
const ( AddrString = "239.255.255.250:1900" AddrString6LL = "[ff02::c]:1900" AddrString6SL = "[ff05::c]:1900" )
Variables ¶
View Source
var NetAddr *net.UDPAddr
View Source
var NetAddr6LL *net.UDPAddr
View Source
var NetAddr6SL *net.UDPAddr
Functions ¶
Types ¶
type Server ¶
type Server struct {
Interface net.Interface
AddrString string
NetAddr *net.UDPAddr
Server string
Services []string
Devices []string
IPFilter func(net.IP) bool
Location func(net.IP) string
UUID string
NotifyInterval time.Duration
// InterfaceAddrs returns the addresses of Interface. Defaults to
// net.Interface.Addrs, which fails on platforms that restrict netlink
// access, such as Android 11+ (https://github.com/golang/go/issues/40569).
InterfaceAddrs func(net.Interface) ([]net.Addr, error)
Logger *slog.Logger
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.