nettool

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MDNSServiceBaseInfo = map[string]string{
	"name":                 "OpenIoTHub服务",
	"model":                "com.iotserv.services.web",
	"author":               "Farry",
	"email":                "newfarry@126.com",
	"home-page":            "https://github.com/OpenIoTHub",
	"firmware-respository": "https://github.com/iotdevice",
	"firmware-version":     "1.0",
}

Functions

func CheckComponentExist

func CheckComponentExist(model string) (bool, error)

func CheckmDNSServiceInfo

func CheckmDNSServiceInfo(info map[string]string) error

检查mdns发布的服务的信息是否存在错误

func GetMacs

func GetMacs() ([]string, error)

func GetOneFreeTcpPort

func GetOneFreeTcpPort() (int, error)

获取一个随机空闲的tcp端口

func RegistermDNSService

func RegistermDNSService(info map[string]string, port int) (*zeroconf.Server, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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