collateral

package
v0.0.0-...-6c9d739 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: OSL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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

func (*CommandHandler) Rebalance

func (collateralCommand *CommandHandler) Rebalance(_ *cobra.Command, _ []string)

Rebalance a function to process rebalancing collateral

Jump to

Keyboard shortcuts

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