Documentation ¶
Index ¶
- Constants
- func AlterWOLClientConfigure(conf *wolconf.WOLServiceConfigure, logger *logrus.Logger, updateTimeOpt bool) error
- func CheckWOLServiceConfigure(conf *wolconf.WOLServiceConfigure) error
- func ClientDisconnect()
- func DeleteWOLDeviceListslice(a []wolconf.WOLDevice, deleteIndex int) []wolconf.WOLDevice
- func ExecShutDown(d *wolconf.WOLDevice) int
- func GetClientState() string
- func GetClientStateMsg() string
- func GetDeviceStateDetail(d *wolconf.WOLDevice) (state string, onlineMacList []string)
- func GetWOLDeviceByKey(key string) *wolconf.WOLDevice
- func GetWOLDeviceByMac(mac string) *wolconf.WOLDevice
- func GetWOLDeviceList() []wolconf.WOLDevice
- func GetWOLServiceConfigure() wolconf.WOLServiceConfigure
- func Init(log *logrus.Logger)
- func Pack(msg interface{}) ([]byte, error)
- func ReceiveMessageDecryptionFunc(messageBytes []byte) ([]byte, error)
- func ReceiveMsgFromWOLClient(c *websocketcontroller.Controller, msgBytes []byte)
- func SendMessage(c *websocketcontroller.Controller, msg any) error
- func SendMessageEncryptionFunc(messageBytesPtr []byte) ([]byte, error)
- func SyncClientConfigureToClient(d *wolconf.WOLDevice)
- func WOLClientConfigureInit(l *logrus.Logger)
- func WOLClientConnected(c *websocketcontroller.Controller)
- func WOLClientDisconnect(c *websocketcontroller.Controller)
- func WOLClientInit(logger *logrus.Logger, c *wolconf.WOLClientConfigure)
- func WOLDeviceListAdd(d *wolconf.WOLDevice) error
- func WOLDeviceListAlter(d *wolconf.WOLDevice) error
- func WOLDeviceListDelete(key string) error
- func WOLDeviceListReplace(key string, d *wolconf.WOLDevice) error
- func WakeUpFinishedCallback(reply bool, macList []string, broadcastIps []string, port, repeat int)
- type Login
- type LoginResp
- type Message
- type ReplyWakeUp
- type ShutDown
- type SyncClientConfigure
Constants ¶
View Source
const ( TypeLogin = '0' TypeLoginResp = '1' TypeSyncClientConfigure = '2' TypeReplyWakeUp = '3' TypeShutDown = '4' )
Variables ¶
This section is empty.
Functions ¶
func AlterWOLClientConfigure ¶
func CheckWOLServiceConfigure ¶
func CheckWOLServiceConfigure(conf *wolconf.WOLServiceConfigure) error
func ClientDisconnect ¶
func ClientDisconnect()
func ExecShutDown ¶
func GetClientState ¶
func GetClientState() string
func GetClientStateMsg ¶
func GetClientStateMsg() string
func GetDeviceStateDetail ¶
func GetWOLDeviceByKey ¶
func GetWOLDeviceByMac ¶
func GetWOLDeviceList ¶
func GetWOLServiceConfigure ¶
func GetWOLServiceConfigure() wolconf.WOLServiceConfigure
func ReceiveMessageDecryptionFunc ¶
receiveMessageDecryptionFunc 自定义接收消息解密函数
func ReceiveMsgFromWOLClient ¶
func ReceiveMsgFromWOLClient(c *websocketcontroller.Controller, msgBytes []byte)
func SendMessage ¶
func SendMessage(c *websocketcontroller.Controller, msg any) error
func WOLClientConfigureInit ¶
func WOLClientConnected ¶
func WOLClientConnected(c *websocketcontroller.Controller)
func WOLClientDisconnect ¶
func WOLClientDisconnect(c *websocketcontroller.Controller)
func WOLClientInit ¶
func WOLClientInit(logger *logrus.Logger, c *wolconf.WOLClientConfigure)
func WOLDeviceListAdd ¶
func WOLDeviceListAlter ¶
func WOLDeviceListDelete ¶
Types ¶
type Login ¶
type Login struct { wolconf.WOLClientConfigure ClientTimeStamp int64 }
type ReplyWakeUp ¶
type SyncClientConfigure ¶
type SyncClientConfigure struct {
wolconf.WOLClientConfigure
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.