runner

package
v0.0.0-...-6637ac4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildVersion string

Build version is set via the command line, e.g. go build -ldflags "-X github.com/xtracdev/xavi/runner.BuildVersion=20160129.1"

Functions

func AddKVSCallbackFunction

func AddKVSCallbackFunction(f KVSCallbackFn)

func Run

func Run(args []string, pluginRegistrationFn func())

Run starts a process delegating to the shell.DoMain function. Typically os.Args[1:] is passed as the input to this function.

Types

type KVSCallbackFn

type KVSCallbackFn func(kvs kvstore.KVStore) error

KVSCallbackFn defines a function type that can be registered with the runner package. On startup, Run will call all registered functions with the key value store used for the config

Jump to

Keyboard shortcuts

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