Documentation ¶
Index ¶
- Constants
- type AppID
- type Args
- type BotEngine
- func (be *BotEngine) Commands() []Command
- func (be *BotEngine) NetworkStatus() (*NetStatus, error)
- func (be *BotEngine) RegisterAllCommands()
- func (be *BotEngine) RegisterBlockchainCommands()
- func (be *BotEngine) RegisterBoosterCommands()
- func (be *BotEngine) RegisterNetworkCommands()
- func (be *BotEngine) RegisterP2PMarketCommands()
- func (be *BotEngine) RegisterRoboPacCommands()
- func (be *BotEngine) RegisterTestNetRewardsCommands()
- func (be *BotEngine) Run(appID AppID, callerID string, inputs []string) (*CommandResult, error)
- func (be *BotEngine) Start()
- func (be *BotEngine) Stop()
- type Command
- type CommandResult
- type IEngine
- type NetHealthResponse
- type NetStatus
- type NodeInfo
Constants ¶
View Source
const ( BlockChainCommandName = "blockchain" CalcRewardCommandName = "calc-reward" CalcFeeCommandName = "calc-fee" BlockChainHelpCommandName = "help" )
View Source
const ( BoosterCommandName = "booster" BoosterPaymentCommandName = "payment" BoosterClaimCommandName = "claim" BoosterWhitelistCommandName = "whitelist" BoosterStatusCommandName = "status" BoosterHelpCommandName = "help" )
View Source
const ( NetworkCommandName = "network" NodeInfoCommandName = "node-info" NetworkStatusCommandName = "status" NetworkHealthCommandName = "health" NetworkHelpCommandName = "help" )
View Source
const ( P2PCommandName = "p2p" DepositAddressCommandName = "deposit-address" CreateOfferCommandName = "create-offer" P2PHelpCommandName = "help" )
View Source
const ( RoboPacCommandName = "robopac" WalletCommandName = "wallet" RoboPacHelpCommandName = "help" )
View Source
const ( TestNetRewardCommandName = "testnet-reward" ClaimCommandName = "claim" ClaimerInfoCommandName = "claimer-info" ClaimStatusCommandName = "status" TestNetRewardHelpCommandName = "help" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotEngine ¶
type BotEngine struct { AuthIDs []string Cmds []Command sync.RWMutex //! remove this. // contains filtered or unexported fields }
func (*BotEngine) NetworkStatus ¶
func (*BotEngine) RegisterAllCommands ¶
func (be *BotEngine) RegisterAllCommands()
func (*BotEngine) RegisterBlockchainCommands ¶
func (be *BotEngine) RegisterBlockchainCommands()
func (*BotEngine) RegisterBoosterCommands ¶
func (be *BotEngine) RegisterBoosterCommands()
func (*BotEngine) RegisterNetworkCommands ¶
func (be *BotEngine) RegisterNetworkCommands()
func (*BotEngine) RegisterP2PMarketCommands ¶
func (be *BotEngine) RegisterP2PMarketCommands()
func (*BotEngine) RegisterRoboPacCommands ¶
func (be *BotEngine) RegisterRoboPacCommands()
func (*BotEngine) RegisterTestNetRewardsCommands ¶
func (be *BotEngine) RegisterTestNetRewardsCommands()
type Command ¶
type CommandResult ¶
func MakeFailedResult ¶
func MakeFailedResult(message string, a ...interface{}) *CommandResult
func MakeSuccessfulResult ¶
func MakeSuccessfulResult(message string, a ...interface{}) *CommandResult
type NetHealthResponse ¶
Click to show internal directories.
Click to hide internal directories.