cli

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the build release identifier.
	Version = "Unspecified"

	// Revision is the build source control revision.
	Revision = "Unspecified"
)
View Source
var DefaultLogLevel = len(log.AllLevels) - 2

DefaultLogLevel is the default log level value.

Functions

func RunPlugin

func RunPlugin(name string, plugin server.VersionedInterface)

RunPlugin runs a plugin server, advertising with the provided name for discovery. The plugin should conform to the rpc call convention as implemented in the rpc package.

func SetLogLevel

func SetLogLevel(level int)

SetLogLevel adjusts the logrus level.

func VersionCommand

func VersionCommand() *cobra.Command

VersionCommand creates a cobra Command that prints build version information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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