Documentation ¶
Index ¶
- type CommandHandler
- func (creditCommand *CommandHandler) Command() *cobra.Command
- func (creditCommand *CommandHandler) GetExchange(_ *cobra.Command, _ []string)
- func (creditCommand *CommandHandler) GetExchangeCommand() *cobra.Command
- func (creditCommand *CommandHandler) GetMintByCreditCommand() *cobra.Command
- func (creditCommand *CommandHandler) GetMintCreditByCollateralCommand() *cobra.Command
- func (creditCommand *CommandHandler) GetRedeemCreditCommand() *cobra.Command
- func (creditCommand *CommandHandler) GetSetupCommand() *cobra.Command
- func (creditCommand *CommandHandler) MintByCollateral(_ *cobra.Command, _ []string)
- func (creditCommand *CommandHandler) MintByCredit(_ *cobra.Command, _ []string)
- func (creditCommand *CommandHandler) Redeem(_ *cobra.Command, _ []string)
- func (creditCommand *CommandHandler) Setup(_ *cobra.Command, _ []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
type CommandHandler struct { Logic logic.Logic Prompt console.Prompt AppConfig config.Configuration }
func NewCommandHandler ¶
func NewCommandHandler(logic logic.Logic, prompt console.Prompt, config config.Configuration) *CommandHandler
NewCommandHandler creates a credit command handler instance.
func (*CommandHandler) Command ¶
func (creditCommand *CommandHandler) Command() *cobra.Command
Command function generates all credit commands
func (*CommandHandler) GetExchange ¶
func (creditCommand *CommandHandler) GetExchange(_ *cobra.Command, _ []string)
GetExchange a function to process getting credit exchange
func (*CommandHandler) GetExchangeCommand ¶
func (creditCommand *CommandHandler) GetExchangeCommand() *cobra.Command
GetExchangeCommand function return credit exchange command
func (*CommandHandler) GetMintByCreditCommand ¶
func (creditCommand *CommandHandler) GetMintByCreditCommand() *cobra.Command
GetMintByCreditCommand function return credit mint by credit command
func (*CommandHandler) GetMintCreditByCollateralCommand ¶
func (creditCommand *CommandHandler) GetMintCreditByCollateralCommand() *cobra.Command
GetMintCreditByCollateralCommand function return credit mint by collateral command
func (*CommandHandler) GetRedeemCreditCommand ¶
func (creditCommand *CommandHandler) GetRedeemCreditCommand() *cobra.Command
GetRedeemCreditCommand function return credit redeem command
func (*CommandHandler) GetSetupCommand ¶
func (creditCommand *CommandHandler) GetSetupCommand() *cobra.Command
GetSetupCommand function return credit setup command
func (*CommandHandler) MintByCollateral ¶
func (creditCommand *CommandHandler) MintByCollateral(_ *cobra.Command, _ []string)
MintByCollateral a function to process minting credit by collateral
func (*CommandHandler) MintByCredit ¶
func (creditCommand *CommandHandler) MintByCredit(_ *cobra.Command, _ []string)
MintByCredit a function to process minting credit by credit
Click to show internal directories.
Click to hide internal directories.