daemon

package
v0.0.0-...-0f10cec Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2013 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOne

func RunOne(cli *etcd.Client, name string, f DaemonFunc, timeout int)

Ensures one daemon is running through a distributed lock on etcd This is a non-blocking call TODO: Handler errors

Types

type DaemonFunc

type DaemonFunc func(stopCh chan int)

DaemonFunc takes a stopCh and should stop when this is unblocked

Jump to

Keyboard shortcuts

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