Documentation
¶
Index ¶
- Constants
- func DirExists(path string) error
- func FileExists(path string) bool
- func IntToSyscallSignal(sig int) syscall.Signal
- func QueryServices(serviceName string) (map[string]*ServiceInfo, error)
- func QueryServicesWithConfig(serviceName string, config QueryConfig) (map[string]*ServiceInfo, error)
- func SignalToString(sig int) string
- func StringToSignal(s string) (int, bool)
- func ToMB(bytes float64) float64
- type DNSHeader
- type DNSQuestion
- type QueryConfig
- type ServiceInfo
Constants ¶
View Source
const ( // Unix SIGABRT = 0x6 SIGALRM = 0xe SIGHUP = 0x1 SIGILL = 0x4 SIGINT = 0x2 SIGKILL = 0x9 SIGPWR = 0x1e SIGQUIT = 0x3 SIGSTOP = 0x13 SIGTERM = 0xf SIGTRAP = 0x5 SIGUSR1 = 0xa SIGUSR2 = 0xc // Windows WM_CLOSE = 0x10 )
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func IntToSyscallSignal ¶
func QueryServices ¶
func QueryServices(serviceName string) (map[string]*ServiceInfo, error)
func QueryServicesWithConfig ¶
func QueryServicesWithConfig(serviceName string, config QueryConfig) (map[string]*ServiceInfo, error)
serviceName example: "_services._dns-sd._udp.local"
func SignalToString ¶
func StringToSignal ¶
Types ¶
type DNSQuestion ¶
type QueryConfig ¶
Click to show internal directories.
Click to hide internal directories.