wolhttpapi

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWOLDevice

func AddWOLDevice(c *gin.Context)

func AlterWOLDevice

func AlterWOLDevice(c *gin.Context)

func DeleteWOLDevice

func DeleteWOLDevice(c *gin.Context)

func GetIPv4Interface

func GetIPv4Interface(c *gin.Context)

func GetWOLDeviceList

func GetWOLDeviceList(c *gin.Context)

func RegisterAPI

func RegisterAPI(r *gin.Engine, authorized *gin.RouterGroup)

RegisterAPI 注册相关API

func SetLogger

func SetLogger(l *logrus.Logger)

func WOLAlterServiceConfigure

func WOLAlterServiceConfigure(c *gin.Context)

func WOLDeviceShutDown

func WOLDeviceShutDown(c *gin.Context)

func WOLDeviceWakeUp

func WOLDeviceWakeUp(c *gin.Context)

func WOLServiceConfigure

func WOLServiceConfigure(c *gin.Context)

func WOLWebsocketHandler

func WOLWebsocketHandler(c *gin.Context)

Types

type DeviceInfo

type DeviceInfo struct {
	wolconf.WOLDevice
	State               string
	OnlineMacList       []string
	DianDengClientState string
	BemfaClientState    string
}

Jump to

Keyboard shortcuts

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