runner

package
v0.0.0-...-af9a2c8 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	ErrCh chan error

	// Channel that receives done signal
	RcvDoneCh chan struct{}

	// Channel that sends done signal
	SndDoneCh chan struct{}
	// contains filtered or unexported fields
}

Runner is used to initialize a watcher and kvHandler

func NewRunner

func NewRunner(config *config.Config, once bool) (*Runner, error)

NewRunner creates a new runner instance

func (*Runner) Start

func (r *Runner) Start()

Start the runner

func (*Runner) Stop

func (r *Runner) Stop()

Stop the runner, cleaning up any routines that it's running. In this case, it will stop the watcher before closing DoneCh

Jump to

Keyboard shortcuts

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