runner

package
Version: v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 7 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL