console

package
v0.9.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2014 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdAddAccount

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

Commander implementation

func (*CmdAddAccount) FromArgs

func (self *CmdAddAccount) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdAddAccount) RpcMethod

func (self *CmdAddAccount) RpcMethod() string

func (*CmdAddAccount) RpcParams

func (self *CmdAddAccount) RpcParams() interface{}

func (*CmdAddAccount) RpcResult

func (self *CmdAddAccount) RpcResult() interface{}

func (*CmdAddAccount) Usage

func (self *CmdAddAccount) Usage(name string) string

name should be exec's name

type CmdAddBalance

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

Commander implementation

func (*CmdAddBalance) FromArgs

func (self *CmdAddBalance) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdAddBalance) RpcMethod

func (self *CmdAddBalance) RpcMethod() string

func (*CmdAddBalance) RpcParams

func (self *CmdAddBalance) RpcParams() interface{}

func (*CmdAddBalance) RpcResult

func (self *CmdAddBalance) RpcResult() interface{}

func (*CmdAddBalance) Usage

func (self *CmdAddBalance) Usage(name string) string

name should be exec's name

type CmdAddTriggeredAction

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

Commander implementation

func (*CmdAddTriggeredAction) FromArgs

func (self *CmdAddTriggeredAction) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdAddTriggeredAction) RpcMethod

func (self *CmdAddTriggeredAction) RpcMethod() string

func (*CmdAddTriggeredAction) RpcParams

func (self *CmdAddTriggeredAction) RpcParams() interface{}

func (*CmdAddTriggeredAction) RpcResult

func (self *CmdAddTriggeredAction) RpcResult() interface{}

func (*CmdAddTriggeredAction) Usage

func (self *CmdAddTriggeredAction) Usage(name string) string

name should be exec's name

type CmdExecuteAction

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

Commander implementation

func (*CmdExecuteAction) FromArgs

func (self *CmdExecuteAction) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdExecuteAction) RpcMethod

func (self *CmdExecuteAction) RpcMethod() string

func (*CmdExecuteAction) RpcParams

func (self *CmdExecuteAction) RpcParams() interface{}

func (*CmdExecuteAction) RpcResult

func (self *CmdExecuteAction) RpcResult() interface{}

func (*CmdExecuteAction) Usage

func (self *CmdExecuteAction) Usage(name string) string

name should be exec's name

type CmdExportCdrs

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

Commander implementation

func (*CmdExportCdrs) FromArgs

func (self *CmdExportCdrs) FromArgs(args []string) error

func (*CmdExportCdrs) RpcMethod

func (self *CmdExportCdrs) RpcMethod() string

func (*CmdExportCdrs) RpcParams

func (self *CmdExportCdrs) RpcParams() interface{}

func (*CmdExportCdrs) RpcResult

func (self *CmdExportCdrs) RpcResult() interface{}

func (*CmdExportCdrs) Usage

func (self *CmdExportCdrs) Usage(name string) string

name should be exec's name

type CmdGetBalance

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

Commander implementation

func (*CmdGetBalance) FromArgs

func (self *CmdGetBalance) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdGetBalance) RpcMethod

func (self *CmdGetBalance) RpcMethod() string

func (*CmdGetBalance) RpcParams

func (self *CmdGetBalance) RpcParams() interface{}

func (*CmdGetBalance) RpcResult

func (self *CmdGetBalance) RpcResult() interface{}

func (*CmdGetBalance) Usage

func (self *CmdGetBalance) Usage(name string) string

name should be exec's name

type CmdGetCacheAge

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

Commander implementation

func (*CmdGetCacheAge) FromArgs

func (self *CmdGetCacheAge) FromArgs(args []string) error

func (*CmdGetCacheAge) RpcMethod

func (self *CmdGetCacheAge) RpcMethod() string

func (*CmdGetCacheAge) RpcParams

func (self *CmdGetCacheAge) RpcParams() interface{}

func (*CmdGetCacheAge) RpcResult

func (self *CmdGetCacheAge) RpcResult() interface{}

func (*CmdGetCacheAge) Usage

func (self *CmdGetCacheAge) Usage(name string) string

name should be exec's name

type CmdGetCacheStats

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

Commander implementation

func (*CmdGetCacheStats) FromArgs

func (self *CmdGetCacheStats) FromArgs(args []string) error

func (*CmdGetCacheStats) RpcMethod

func (self *CmdGetCacheStats) RpcMethod() string

func (*CmdGetCacheStats) RpcParams

func (self *CmdGetCacheStats) RpcParams() interface{}

func (*CmdGetCacheStats) RpcResult

func (self *CmdGetCacheStats) RpcResult() interface{}

func (*CmdGetCacheStats) Usage

func (self *CmdGetCacheStats) Usage(name string) string

name should be exec's name

type CmdGetCost

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

Commander implementation

func (*CmdGetCost) FromArgs

func (self *CmdGetCost) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdGetCost) RpcMethod

func (self *CmdGetCost) RpcMethod() string

func (*CmdGetCost) RpcParams

func (self *CmdGetCost) RpcParams() interface{}

func (*CmdGetCost) RpcResult

func (self *CmdGetCost) RpcResult() interface{}

func (*CmdGetCost) Usage

func (self *CmdGetCost) Usage(name string) string

name should be exec's name

type CmdGetDestination

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

Commander implementation

func (*CmdGetDestination) FromArgs

func (self *CmdGetDestination) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdGetDestination) RpcMethod

func (self *CmdGetDestination) RpcMethod() string

func (*CmdGetDestination) RpcParams

func (self *CmdGetDestination) RpcParams() interface{}

func (*CmdGetDestination) RpcResult

func (self *CmdGetDestination) RpcResult() interface{}

func (*CmdGetDestination) Usage

func (self *CmdGetDestination) Usage(name string) string

name should be exec's name

type CmdReloadCache

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

Commander implementation

func (*CmdReloadCache) FromArgs

func (self *CmdReloadCache) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdReloadCache) RpcMethod

func (self *CmdReloadCache) RpcMethod() string

func (*CmdReloadCache) RpcParams

func (self *CmdReloadCache) RpcParams() interface{}

func (*CmdReloadCache) RpcResult

func (self *CmdReloadCache) RpcResult() interface{}

func (*CmdReloadCache) Usage

func (self *CmdReloadCache) Usage(name string) string

name should be exec's name

type CmdReloadScheduler

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

Commander implementation

func (*CmdReloadScheduler) FromArgs

func (self *CmdReloadScheduler) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdReloadScheduler) RpcMethod

func (self *CmdReloadScheduler) RpcMethod() string

func (*CmdReloadScheduler) RpcParams

func (self *CmdReloadScheduler) RpcParams() interface{}

func (*CmdReloadScheduler) RpcResult

func (self *CmdReloadScheduler) RpcResult() interface{}

func (*CmdReloadScheduler) Usage

func (self *CmdReloadScheduler) Usage(name string) string

name should be exec's name

type CmdSetAccountActions

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

Commander implementation

func (*CmdSetAccountActions) FromArgs

func (self *CmdSetAccountActions) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdSetAccountActions) RpcMethod

func (self *CmdSetAccountActions) RpcMethod() string

func (*CmdSetAccountActions) RpcParams

func (self *CmdSetAccountActions) RpcParams() interface{}

func (*CmdSetAccountActions) RpcResult

func (self *CmdSetAccountActions) RpcResult() interface{}

func (*CmdSetAccountActions) Usage

func (self *CmdSetAccountActions) Usage(name string) string

name should be exec's name

type CmdSetrRatingProfile

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

Commander implementation

func (*CmdSetrRatingProfile) FromArgs

func (self *CmdSetrRatingProfile) FromArgs(args []string) error

Parses command line args and builds CmdBalance value

func (*CmdSetrRatingProfile) RpcMethod

func (self *CmdSetrRatingProfile) RpcMethod() string

func (*CmdSetrRatingProfile) RpcParams

func (self *CmdSetrRatingProfile) RpcParams() interface{}

func (*CmdSetrRatingProfile) RpcResult

func (self *CmdSetrRatingProfile) RpcResult() interface{}

func (*CmdSetrRatingProfile) Usage

func (self *CmdSetrRatingProfile) Usage(name string) string

name should be exec's name

type CmdStatus

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

func (*CmdStatus) FromArgs

func (self *CmdStatus) FromArgs(args []string) error

func (*CmdStatus) RpcMethod

func (self *CmdStatus) RpcMethod() string

func (*CmdStatus) RpcParams

func (self *CmdStatus) RpcParams() interface{}

func (*CmdStatus) RpcResult

func (self *CmdStatus) RpcResult() interface{}

func (*CmdStatus) Usage

func (self *CmdStatus) Usage(name string) string

type Commander

type Commander interface {
	FromArgs(args []string) error // Load data from os arguments or flag.Args()
	Usage(string) string          // usage message
	RpcMethod() string            // Method which should be called remotely
	RpcParams() interface{}       // Parameters to send out on rpc
	RpcResult() interface{}       // Only requirement is to have a String method to print on console
	// contains filtered or unexported methods
}

Console Command interface

func GetCommandValue

func GetCommandValue(args []string) (Commander, error)

Process args and return right command Value or error

Jump to

Keyboard shortcuts

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