wakeuplib

package
v0.0.0-...-ba1c585 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 20 Imported by: 0

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.

Jump to

Keyboard shortcuts

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