Documentation ¶
Index ¶
- Variables
- func CheckComponentExist(model string) (bool, error)
- func CheckmDNSServiceInfo(info map[string]string) error
- func GetExternalIpPortByKCP(listener *net.UDPConn, token *models.TokenClaims) (*net.UDPAddr, error)
- func GetExternalIpPortByUDP(listener *net.UDPConn, token *models.TokenClaims) (*net.UDPAddr, error)
- func GetMacs() ([]string, error)
- func GetOneFreeTcpPort() (int, error)
- func RegistermDNSService(info map[string]string, port int) (*zeroconf.Server, error)
- func RunKCPApiServer(port int)
- func RunUDPApiServer(port int)
- func SetYamuxConn(kcpconn *kcp.UDPSession)
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 CheckmDNSServiceInfo ¶
检查mdns发布的服务的信息是否存在错误
func GetExternalIpPortByKCP ¶ added in v0.0.27
获取一个listener的外部地址和端口
func GetExternalIpPortByUDP ¶ added in v0.0.27
获取一个listener的外部地址和端口
func RegistermDNSService ¶
func RunKCPApiServer ¶ added in v0.0.27
func RunKCPApiServer(port int)
func RunUDPApiServer ¶ added in v0.0.27
func RunUDPApiServer(port int)
func SetYamuxConn ¶ added in v0.0.5
func SetYamuxConn(kcpconn *kcp.UDPSession)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.