command

package
v0.0.0-...-eddcbdb Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (*Command) Kill

func (c *Command) Kill() bool

func (*Command) NeedsRestart

func (c *Command) NeedsRestart() bool

func (*Command) Run

func (c *Command) Run(fn func(string))

func (*Command) Start

func (c *Command) Start()

func (*Command) Stop

func (c *Command) Stop()

type CommandInterface

type CommandInterface interface {
	Run(func(string))
	Start()
	NeedsRestart() bool
	Kill() bool
	Stop()
}

func NewCommand

func NewCommand(name string, commandName string, commandConfig config.Command) CommandInterface

type NilCommand

type NilCommand struct {
}

func (*NilCommand) Kill

func (nc *NilCommand) Kill() bool

func (*NilCommand) NeedsRestart

func (nc *NilCommand) NeedsRestart() bool

func (*NilCommand) Run

func (nc *NilCommand) Run(fn func(string))

func (*NilCommand) Start

func (nc *NilCommand) Start()

func (*NilCommand) Stop

func (nc *NilCommand) Stop()

Jump to

Keyboard shortcuts

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