Documentation ¶
Index ¶
- func BotNameArrayFlagVar(f *pflag.FlagSet, s *[]tbtypes.BotName, name string, usage string)
- func BotNameArrayFlagVarP(f *pflag.FlagSet, s *[]tbtypes.BotName, name, shorthand string, usage string)
- func CreateConsensusSubCmds(ccli *rivinecli.CommandLineClient) error
- func CreateExplorerSubCmds(ccli *rivinecli.CommandLineClient) error
- func CreateWalletCmds(ccli *client.CommandLineClient) error
- func NetworkAddressArrayFlagVar(f *pflag.FlagSet, s *[]tbtypes.NetworkAddress, name string, usage string)
- func NetworkAddressArrayFlagVarP(f *pflag.FlagSet, s *[]tbtypes.NetworkAddress, name, shorthand string, ...)
- func PublicKeyFlagVar(f *pflag.FlagSet, pk *rivinetypes.PublicKey, name string, usage string)
- func PublicKeyFlagVarP(f *pflag.FlagSet, pk *rivinetypes.PublicKey, name, shorthand string, ...)
- type PluginClient
- func (client *PluginClient) BotRecordForString(str string) (*tbtypes.BotRecord, error)
- func (client *PluginClient) GetBotTransactionIdentifiers(id tbtypes.BotID) ([]types.TransactionID, error)
- func (client *PluginClient) GetRecordForID(id tbtypes.BotID) (*tbtypes.BotRecord, error)
- func (client *PluginClient) GetRecordForKey(publicKey types.PublicKey) (*tbtypes.BotRecord, error)
- func (client *PluginClient) GetRecordForName(name tbtypes.BotName) (*tbtypes.BotRecord, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BotNameArrayFlagVar ¶
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 ¶
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)