client

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BotNameArrayFlagVar

func BotNameArrayFlagVar(f *pflag.FlagSet, s *[]tbtypes.BotName, name string, usage string)

BotNameArrayFlagVar defines a BotName Array flag with specified name and usage string. The arguments s points to a BotName slice variable in which to store the interpreted values of the flags. The value of each argument will not try to be separated by comma, each value has to be defined as a separate flag.

func BotNameArrayFlagVarP

func BotNameArrayFlagVarP(f *pflag.FlagSet, s *[]tbtypes.BotName, name, shorthand string, usage string)

BotNameArrayFlagVarP defines a BotName Array flag with specified name, shorthand and usage string. The argument s points to a BotName slice variable in which to store the compiled values of the multiple flags. The value of each argument will not try to be separated by comma, each value has to be defined as a separate flag (using the same name or shorthand).

func CreateConsensusSubCmds

func CreateConsensusSubCmds(ccli *rivinecli.CommandLineClient) error

func CreateExplorerSubCmds

func CreateExplorerSubCmds(ccli *rivinecli.CommandLineClient) error

func CreateWalletCmds

func CreateWalletCmds(ccli *client.CommandLineClient) error

CreateWalletCmds creates the threebot wallet root command as well as its transaction creation sub commands.

func NetworkAddressArrayFlagVar

func NetworkAddressArrayFlagVar(f *pflag.FlagSet, s *[]tbtypes.NetworkAddress, name string, usage string)

NetworkAddressArrayFlagVar defines a NetworkAddress Array flag with specified name and usage string. The arguments s points to a NetworkAddress slice variable in which to store the interpreted values of the flags. The value of each argument will not try to be separated by comma, each value has to be defined as a separate flag.

func NetworkAddressArrayFlagVarP

func NetworkAddressArrayFlagVarP(f *pflag.FlagSet, s *[]tbtypes.NetworkAddress, name, shorthand string, usage string)

NetworkAddressArrayFlagVarP defines a NetworkAddress Array flag with specified name, shorthand and usage string. The argument s points to a NetworkAddress slice variable in which to store the compiled values of the flags. The value of each argument will not try to be separated by comma, each value has to be defined as a separate flag (using the same name or shorthand).

func PublicKeyFlagVar

func PublicKeyFlagVar(f *pflag.FlagSet, pk *rivinetypes.PublicKey, name string, usage string)

PublicKeyFlagVar defines a PublicKey flag with specified name and usage string. The arguments pk points to a PublicKey variable in which to store the interpreted values of the flag.

func PublicKeyFlagVarP

func PublicKeyFlagVarP(f *pflag.FlagSet, pk *rivinetypes.PublicKey, name, shorthand string, usage string)

PublicKeyFlagVarP defines a PublicKey flag with specified name, shorthand and usage string. The arguments pk points to a PublicKey variable in which to store the interpreted values of the flag.

Types

type PluginClient

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

PluginClient is used to be able to get auth information from a daemon that has the authcointx extension enabled and running.

func NewPluginConsensusClient

func NewPluginConsensusClient(bc client.BaseClient) *PluginClient

NewPluginConsensusClient creates a new PluginClient, that can be used for easy interaction with the API exposed via the Consensus endpoints

func NewPluginExplorerClient

func NewPluginExplorerClient(bc client.BaseClient) *PluginClient

NewPluginExplorerClient creates a new PluginClient, that can be used for easy interaction with the API exposed via the Explorer endpoints

func (*PluginClient) BotRecordForString

func (client *PluginClient) BotRecordForString(str string) (*tbtypes.BotRecord, error)

func (*PluginClient) GetBotTransactionIdentifiers

func (client *PluginClient) GetBotTransactionIdentifiers(id tbtypes.BotID) ([]types.TransactionID, error)

func (*PluginClient) GetRecordForID

func (client *PluginClient) GetRecordForID(id tbtypes.BotID) (*tbtypes.BotRecord, error)

func (*PluginClient) GetRecordForKey

func (client *PluginClient) GetRecordForKey(publicKey types.PublicKey) (*tbtypes.BotRecord, error)

func (*PluginClient) GetRecordForName

func (client *PluginClient) GetRecordForName(name tbtypes.BotName) (*tbtypes.BotRecord, error)

Jump to

Keyboard shortcuts

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