client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2015 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	NArgs      []string
	Args       []string
	Session    string
	Command    Command
	CommandStr string
	Filter     *msg.Filter
	// contains filtered or unexported fields
}

func NewCli

func NewCli() *Cli

func (*Cli) GetClient

func (cli *Cli) GetClient() *rpc.Client

func (*Cli) Help

func (cli *Cli) Help()

func (*Cli) ParseArgs

func (cli *Cli) ParseArgs(args []string) error

func (*Cli) Run

func (cli *Cli) Run()

type Client

type Client interface {
	Help() string
	Init(fs *flag.FlagSet) bool
	Run(cli *Cli) error
}

type Command

type Command int
const (
	None Command = iota
	Output
	Input
	IO
	Error
	Log
	Run
	Open
	Close
	List
	Start
	Stop
	Kill
	Ping
)

type CommandClose

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

func NewCommandClose

func NewCommandClose() *CommandClose

func (*CommandClose) Help

func (c *CommandClose) Help() string

func (*CommandClose) Init

func (c *CommandClose) Init(fs *flag.FlagSet) bool

func (*CommandClose) Run

func (c *CommandClose) Run(cli *Cli) error

type CommandError

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

func NewCommandError

func NewCommandError() *CommandError

func (*CommandError) Help

func (c *CommandError) Help() string

func (*CommandError) Init

func (c *CommandError) Init(fs *flag.FlagSet) bool

func (*CommandError) Run

func (c *CommandError) Run(cli *Cli) error

type CommandIO

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

func NewCommandIO

func NewCommandIO() *CommandIO

func (*CommandIO) Help

func (c *CommandIO) Help() string

func (*CommandIO) Init

func (c *CommandIO) Init(fs *flag.FlagSet) bool

func (*CommandIO) Run

func (c *CommandIO) Run(cli *Cli) error

type CommandInput

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

func NewCommandInput

func NewCommandInput() *CommandInput

func (*CommandInput) Help

func (c *CommandInput) Help() string

func (*CommandInput) Init

func (c *CommandInput) Init(fs *flag.FlagSet) bool

func (*CommandInput) Run

func (c *CommandInput) Run(cli *Cli) error

type CommandKill

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

func NewCommandKill

func NewCommandKill() *CommandKill

func (*CommandKill) Help

func (c *CommandKill) Help() string

func (*CommandKill) Init

func (c *CommandKill) Init(fs *flag.FlagSet) bool

func (*CommandKill) Run

func (c *CommandKill) Run(cli *Cli) error

type CommandList

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

func NewCommandList

func NewCommandList() *CommandList

func (*CommandList) Help

func (c *CommandList) Help() string

func (*CommandList) Init

func (c *CommandList) Init(fs *flag.FlagSet) bool

func (*CommandList) Run

func (c *CommandList) Run(cli *Cli) error

type CommandLog

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

func NewCommandLog

func NewCommandLog() *CommandLog

func (*CommandLog) Help

func (c *CommandLog) Help() string

func (*CommandLog) Init

func (c *CommandLog) Init(fs *flag.FlagSet) bool

func (*CommandLog) Run

func (c *CommandLog) Run(cli *Cli) error

type CommandOpen

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

func NewCommandOpen

func NewCommandOpen() *CommandOpen

func (*CommandOpen) Help

func (c *CommandOpen) Help() string

func (*CommandOpen) Init

func (c *CommandOpen) Init(fs *flag.FlagSet) bool

func (*CommandOpen) Run

func (c *CommandOpen) Run(cli *Cli) error

type CommandOutput

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

func NewCommandOutput

func NewCommandOutput() *CommandOutput

func (*CommandOutput) Help

func (c *CommandOutput) Help() string

func (*CommandOutput) Init

func (c *CommandOutput) Init(fs *flag.FlagSet) bool

func (*CommandOutput) Run

func (c *CommandOutput) Run(cli *Cli) error

type CommandPing

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

func NewCommandPing

func NewCommandPing() *CommandPing

func (*CommandPing) Help

func (c *CommandPing) Help() string

func (*CommandPing) Init

func (c *CommandPing) Init(fs *flag.FlagSet) bool

func (*CommandPing) Run

func (c *CommandPing) Run(cli *Cli) error

type CommandRun

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

func NewCommandRun

func NewCommandRun() *CommandRun

func (*CommandRun) Help

func (c *CommandRun) Help() string

func (*CommandRun) Init

func (c *CommandRun) Init(fs *flag.FlagSet) bool

func (*CommandRun) Run

func (c *CommandRun) Run(cli *Cli) error

type CommandStart

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

func NewCommandStart

func NewCommandStart() *CommandStart

func (*CommandStart) Help

func (c *CommandStart) Help() string

func (*CommandStart) Init

func (c *CommandStart) Init(fs *flag.FlagSet) bool

func (*CommandStart) Run

func (c *CommandStart) Run(cli *Cli) error

type CommandStop

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

func NewCommandStop

func NewCommandStop() *CommandStop

func (*CommandStop) Help

func (c *CommandStop) Help() string

func (*CommandStop) Init

func (c *CommandStop) Init(fs *flag.FlagSet) bool

func (*CommandStop) Run

func (c *CommandStop) Run(cli *Cli) error

Jump to

Keyboard shortcuts

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