commands

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var List = make(map[string]reflect.Type)

List of Inputs

Functions

func CommandHelp

func CommandHelp(config *models.Config) (command []string)

commandHelp function

func Exists

func Exists(connType string) (exists bool)

Exists function

func Make

func Make(connType string) interface{}

MakeService

func Recovery

func Recovery(service models.Service)

Recovery

Types

type Action

type Action interface {
	Act(message *models.Message, states map[string]models.State, config *models.Config)
}

Input interface

type Help

type Help struct {
}

func (Help) Act

func (x Help) Act(message *models.Message, states map[string]models.State, config *models.Config)

type Passwd

type Passwd struct {
}

func (Passwd) Act

func (x Passwd) Act(message *models.Message, states map[string]models.State, config *models.Config)

type Ping

type Ping struct {
}

func (Ping) Act

func (x Ping) Act(message *models.Message, states map[string]models.State, config *models.Config)

type State

type State struct {
}

func (State) Act

func (x State) Act(message *models.Message, states map[string]models.State, config *models.Config)

type Uptime

type Uptime struct {
}

func (Uptime) Act

func (x Uptime) Act(message *models.Message, states map[string]models.State, config *models.Config)

type Version

type Version struct {
}

func (Version) Act

func (x Version) Act(message *models.Message, states map[string]models.State, config *models.Config)

type Whoami

type Whoami struct {
}

func (Whoami) Act

func (x Whoami) Act(message *models.Message, states map[string]models.State, config *models.Config)

Jump to

Keyboard shortcuts

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