cmd

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

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*Base
}

API ...

func NewAPI

func NewAPI(baseCMD *Base) *API

NewAPI constructs ApiCMD

func (*API) Run

func (cmd *API) Run(cliCtx *cli.Context) error

Run runs the application import data

func (*API) Run1

func (cmd *API) Run1(cliCtx *cli.Context) error

Run runs the application import data

type Base

type Base struct {
	DB *sqlx.DB
	// contains filtered or unexported fields
}

Base hold common command properties

func NewBase

func NewBase(ctx context.Context, config *config.Specification) *Base

NewBase creates a structure with common shared properties of the commands

func (*Base) InitDatabaseConnection

func (cmd *Base) InitDatabaseConnection() error

type CLI

type CLI struct {
	*Base
	// contains filtered or unexported fields
}

func NewCLI

func NewCLI(base *Base) *CLI

func (*CLI) AddBuyStock

func (cmd *CLI) AddBuyStock(cliCtx *cli.Context) error

func (*CLI) AddDividend

func (cmd *CLI) AddDividend(cliCtx *cli.Context) error

func (*CLI) AddDividendRetention

func (cmd *CLI) AddDividendRetention(cliCtx *cli.Context) error

AddDividendRetention adds dividend retention.

func (*CLI) AddInterest

func (cmd *CLI) AddInterest(cliCtx *cli.Context) error

func (*CLI) AddSellStock

func (cmd *CLI) AddSellStock(cliCtx *cli.Context) error

func (*CLI) AddStock

func (cmd *CLI) AddStock(cliCtx *cli.Context) error

AddStock adds stock. Scraped the rest of information of the stock from Yahoo/MarketChameleon

func (*CLI) ExportSnapshotWallet

func (cmd *CLI) ExportSnapshotWallet(cliCtx *cli.Context) error

func (*CLI) ExportStocks

func (cmd *CLI) ExportStocks(cliCtx *cli.Context) error

List in csv format the wallet items from a wallet

func (*CLI) ExportWallet

func (cmd *CLI) ExportWallet(cliCtx *cli.Context) error

ExportWalletDetails List in csv format or print into screen the wallet details

func (*CLI) ImportDividendRetention

func (cmd *CLI) ImportDividendRetention(cliCtx *cli.Context) error

func (*CLI) ImportOperation

func (cmd *CLI) ImportOperation(cliCtx *cli.Context) error

func (*CLI) ImportStock

func (cmd *CLI) ImportStock(cliCtx *cli.Context) error

func (*CLI) ImportTransfer

func (cmd *CLI) ImportTransfer(cliCtx *cli.Context) error

func (*CLI) ImportWallet

func (cmd *CLI) ImportWallet(cliCtx *cli.Context) error

ImportWallet

func (*CLI) ReloadWallet

func (cmd *CLI) ReloadWallet(cliCtx *cli.Context) error

ReloadWallet reload the wallet operation

func (*CLI) UpdateDividend

func (cmd *CLI) UpdateDividend(cliCtx *cli.Context) error

func (*CLI) UpdatePrice

func (cmd *CLI) UpdatePrice(cliCtx *cli.Context) error

type HTTP

type HTTP struct {
	*Base
}

HTTP holds the necessary data for its execution

func NewHTTP

func NewHTTP(base *Base) *HTTP

NewHTTP constructs HTTP

func (*HTTP) Run

func (cmd *HTTP) Run(cliCtx *cli.Context) error

Run ...

type Migrate

type Migrate struct {
	*Base
}

Migrate ...

func NewMigrate

func NewMigrate(base *Base) *Migrate

NewMigrate constructs Migrate

func (*Migrate) Down

func (cmd *Migrate) Down(cliCtx *cli.Context) error

Down downs the migrations

func (*Migrate) Run

func (cmd *Migrate) Run(cliCtx *cli.Context) error

Run runs the application database migrations

func (*Migrate) Up

func (cmd *Migrate) Up(cliCtx *cli.Context) error

Up runs all the migrations

type Scraper

type Scraper struct {
	*Base
}

Scraper ...

func NewScraper

func NewScraper(baseCMD *Base) *Scraper

NewScraper constructs ApiCMD

func (*Scraper) DividendGrowthStocks

func (cmd *Scraper) DividendGrowthStocks(cliCtx *cli.Context) error

DividendGrowthStocks from dividend-calculator.com

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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