Documentation ¶
Index ¶
- type CommandHandler
- func (collateralCommand *CommandHandler) Command() *cobra.Command
- func (collateralCommand *CommandHandler) GetHealthCheckCommand() *cobra.Command
- func (collateralCommand *CommandHandler) GetRebalanceCommand() *cobra.Command
- func (collateralCommand *CommandHandler) HealthCheck(_ *cobra.Command, _ []string)
- func (collateralCommand *CommandHandler) Rebalance(_ *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 collateral command handler instance.
func (*CommandHandler) Command ¶
func (collateralCommand *CommandHandler) Command() *cobra.Command
Command function generates all collateral commands
func (*CommandHandler) GetHealthCheckCommand ¶
func (collateralCommand *CommandHandler) GetHealthCheckCommand() *cobra.Command
GetHealthCheckCommand function return get health check command
func (*CommandHandler) GetRebalanceCommand ¶
func (collateralCommand *CommandHandler) GetRebalanceCommand() *cobra.Command
GetRebalanceCommand function return get rebalance command
func (*CommandHandler) HealthCheck ¶
func (collateralCommand *CommandHandler) HealthCheck(_ *cobra.Command, _ []string)
HealthCheck a function to process getting health check collateral
Click to show internal directories.
Click to hide internal directories.