Versions in this module Expand all Collapse all v1 v1.10.8 Apr 23, 2023 v1.10.3 Apr 15, 2023 v1.9.3 Mar 29, 2023 v1.9.1 Mar 25, 2023 v1.9.0 Mar 25, 2023 v1.8.5 Mar 13, 2023 v1.8.3 Mar 11, 2023 v1.7.21 Feb 13, 2023 v1.7.17 Jan 14, 2023 v1.7.16 Jan 14, 2023 v1.7.15 Jan 14, 2023 v1.7.13 Jan 14, 2023 v1.7.12 Jan 14, 2023 v1.7.5 Dec 24, 2022 v1.7.4 Dec 13, 2022 v1.7.3 Dec 11, 2022 v1.7.2 Dec 9, 2022 Changes in this version + func GetHttpClientSecureVerify() bool + func SetClientDisconnectFunc(f func()) + func SetClientInitFunc(f func(logger *logrus.Logger, c *WOLClientConfigure)) + func SetHttpClientSecureVerify(b bool) + func SetHttpClientTimeout(t int) + func StoreWOLServiceConfigure(con *WOLServiceConfigure) + func WakeOnLan(relay bool, macList []string, broadcastIps []string, port, repeat int, ...) (err error) + type WOLClientConfigure struct + BroadcastIP string + DeviceName string + Enable bool + Key string + Mac string + Port int + PowerOffCMD string + Relay bool + Repeat int + ServerURL string + Token string + UpdateTime int64 + func (c *WOLClientConfigure) ClientDisconnect() + func (c *WOLClientConfigure) Init(logger *logrus.Logger) + type WOLDevice struct + BroadcastIPs []string + DeviceName string + IOT_Bemfa_Enable bool + IOT_Bemfa_SecretKey string + IOT_Bemfa_Topic string + IOT_DianDeng_AUTHKEY string + IOT_DianDeng_Enable bool + Key string + MacList []string + Port int + Relay bool + Repeat int + UpdateTime int64 + func (d *WOLDevice) BemfaClientStart() + func (d *WOLDevice) BemfaClientStop() + func (d *WOLDevice) DianDengClientStart() + func (d *WOLDevice) DianDengClientStop() + func (d *WOLDevice) GetBemfaClient() *bemfa.Device + func (d *WOLDevice) GetBemfaClientState() string + func (d *WOLDevice) GetDianDengClient() *blinker.Device + func (d *WOLDevice) GetDianDengClientState() string + func (d *WOLDevice) GetIdentKey() string + func (d *WOLDevice) SetBemfaClient(dd *bemfa.Device) + func (d *WOLDevice) SetBemfaClientMsg(msg string) + func (d *WOLDevice) SetDianDengClient(dd *blinker.Device) + func (d *WOLDevice) SetDianDengClientMsg(msg string) + func (d *WOLDevice) SetShutDownFunc(f func(d *WOLDevice) int) + func (d *WOLDevice) WakeUp(...) error + type WOLServerConfigure struct + Enable bool + Token string + type WOLServiceConfigure struct + Client WOLClientConfigure + Server WOLServerConfigure + func GetWOLServiceConfigure() WOLServiceConfigure