Documentation ¶
Overview ¶
Package wakeuplib implements utilities for wakeup server implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServers ¶
func StartServers(ctx *context.T, mountName, mtPersistDir string, sharedKey [32]byte, wake func(*context.T, string, string) error) (func(), error)
StartServers starts the wakeup server and an associated mounttable, returning a function that should be used to stop the servers or an error if the servers couldn't be started.
The mounttable is mounted at the provided mountName. The wakeup server is mounted under <mountName>/server.
Provided mtPersistDir directory is used for persisting mounttable entries.
Provided sharedKey is used for obscuring wakeup tokens.
Finally, provided wake function is used for waking up the remote server using an associated wakeup token and the service name component of the mount name.
Types ¶
This section is empty.