Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvertiseDevice ¶
发送局域网SSDP广播, 让电脑端能发现设备并显示在网络列表里。
Types ¶
type Options ¶
type Options struct { File string `json:"-" flag:"config" short:"c" usage:"配置文件路径, 参数优先级: 文件>启动参数>环境变量"` Interfaces []string `json:"interfaces" usage:"指定网卡介质"` Location string `json:"location" short:"l" usage:"指定服务描述的的访问地址"` Port int `json:"port" short:"p" usage:"指定描述访问的端口, 0为随机端口"` FriendlyName string `json:"friendly_name" short:"n" usage:"友好名称"` Manufacturer string `json:"manufacturer" usage:"制造商"` ManufacturerURL string `json:"manufacturer_url" usage:"制造商链接"` ModelName string `json:"model_name" short:"m" usage:"型号"` ModelNumber string `json:"model_number" usage:"型号"` ModelURL string `json:"model_url" usage:"型号链接"` ModelDescription string `json:"model_description" usage:"型号描述"` ModelType string `json:"model_type" usage:"型号类型"` SerialNumber string `json:"serial_number" usage:"序列号"` UDN string `json:"udn" usage:"唯一识别符"` PresentationURL string `json:"presentation_url" short:"u" usage:"设备网页,双击设备默认跳转到该参数指定的地址"` Server string `json:"server" usage:"设备服务名称"` Verbose bool `json:"verbose" short:"v" usage:"是否输出详细日志"` AliveTick time.Duration `json:"alive_tick" usage:"通告 Alive 时间间隔"` MaxAge int `json:"maxage" flag:"maxage" usage:"ssdp maxage"` }
func (Options) ConfigFilePath ¶ added in v0.3.1
Click to show internal directories.
Click to hide internal directories.