Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SR-G/sleep-on-lan
/ functions
Functions
46 in github.com/SR-G/sleep-on-lan
⨍
Functions
46
◇
Types & classes
18
↓ 12 callers
Method
String
()
src/version.go:44
↓ 7 callers
Function
dumpRoute
(route string)
src/listener_http.go:86
↓ 6 callers
Function
renderResult
func retrieveIpFromMac(mac strinc) string { requires defined interface ... }
src/listener_http.go:94
↓ 3 callers
Function
ExecuteCommand
(Command CommandConfiguration)
src/sleeper_linux.go:15
↓ 3 callers
Function
LocalNetworkMap
()
src/utils_network.go:109
↓ 3 callers
Method
Parse
()
src/configuration.go:113
↓ 2 callers
Function
Execute
(command string)
src/utils_system.go:8
↓ 2 callers
Function
ExitDaemon
(s string)
src/sol.go:27
↓ 2 callers
Function
GetInterfaces
Use the net library to return all Interfaces and capture any errors.
src/utils_network.go:49
↓ 2 callers
Method
GetVersion
()
src/version.go:35
↓ 2 callers
Method
InitDefaultConfiguration
()
src/configuration.go:64
↓ 2 callers
Function
ReverseMacAddress
(address string)
src/utils.go:7
↓ 2 callers
Function
doAction
()
src/listener_udp.go:102
↓ 2 callers
Function
sleepDLLImplementation
(state int)
src/sleeper_windows.go:60
↓ 1 callers
Function
EncodeMagicPacket
Use a MAC address to form a magic packet macAddr form 12:34:56:78:9a:bc
src/utils_network.go:91
↓ 1 callers
Function
ExecuteActionWithDelay
(availableCommand CommandConfiguration)
src/listener_http.go:137
↓ 1 callers
Function
ListenHTTP
(port int)
src/listener_http.go:143
↓ 1 callers
Function
ListenUDP
(port int)
src/listener_udp.go:14
↓ 1 callers
Method
Load
(configurationFileName string)
src/configuration.go:75
↓ 1 callers
Method
RefineLogger
()
src/configuration.go:93
↓ 1 callers
Method
RegisterDefaultCommand
()
src/sleeper_linux.go:3
↓ 1 callers
Function
RegisterPossibleConfigurationFileNames
()
src/sleeper_linux.go:8
↓ 1 callers
Method
Wake
Send a Magic Packet to an broadcast class IP address via UDP
src/utils_network.go:123
↓ 1 callers
Function
determineConfigurationFileName
()
src/sol.go:117
↓ 1 callers
Function
doActionWithDelay
()
src/listener_udp.go:58
↓ 1 callers
Function
executeCommandGenerateConfiguration
Sub-command : generate JSON blank configuration (init)
src/sol.go:72
↓ 1 callers
Function
extractMacAddress
(rlen int, buf [1024]byte)
src/listener_udp.go:78
↓ 1 callers
Method
isEmpty
()
src/configuration.go:47
↓ 1 callers
Function
leftPad2Len
(s string, padStr string, overallLen int)
src/listener_udp.go:95
↓ 1 callers
Function
matchAddress
(receivedAddress net.HardwareAddr)
src/listener_udp.go:64
↓ 1 callers
Function
pingIp
(ip string)
src/listener_http.go:113
↓ 1 callers
Function
shutdownDLLImplementation
()
src/sleeper_windows.go:74
↓ 1 callers
Function
sleepCommandLineImplementation
(cmd string)
src/sleeper_windows.go:47
↓ 1 callers
Function
sleepCommandLineImplementation
(cmd string)
src/sleeper_linux.go:24
↓ 1 callers
Function
startDaemon
()
src/sol.go:149
Method
DumpVersion
()
src/version.go:26
Function
ExecuteCommand
(Command CommandConfiguration)
src/sleeper_windows.go:29
Function
ExternalIP
()
src/utils_network.go:10
Function
GetInterfaceByHardwareAddress
Using the net library we will loop over all interfaces looking for the interface with matching mac_address.
src/utils_network.go:79
Function
GetInterfaceByIndex
Use the net library to get Interface by Index number and capture any errors.
src/utils_network.go:59
Function
GetInterfaceByName
Use the net library to get Interface by Name and capture any errors
src/utils_network.go:69
Function
LocalLoggoFormatter
(entry loggo.Entry)
src/sol.go:36
Method
RegisterDefaultCommand
()
src/sleeper_windows.go:17
Function
RegisterPossibleConfigurationFileNames
()
src/sleeper_windows.go:24
Function
init
()
src/sol.go:43
Function
main
()
src/sol.go:215