commands

package
v0.0.0-...-c2832fb Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = map[string]*Command{}

Functions

func Add

func Add(name, short, long string, cmd interface{})

func OnShutdown

func OnShutdown(f func())

func SetShutdownHandler

func SetShutdownHandler(h ShutdownHandler)

Types

type Command

type Command struct {
	Name, Short, Long string
	Cmd               interface{}
}

type ShutdownHandler

type ShutdownHandler interface {
	OnShutdown(f func())
}

Jump to

Keyboard shortcuts

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