data

package
v0.0.0-...-c6a585d Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlterWallet = CoinsDataSource{
	CryptoDataSource{
		Name: "Coins",
		Info: TrayElement{
			Content: "",
		},
		ChildElements: make(map[string]TrayElement),
	},
	CoinsCredentials{
		// contains filtered or unexported fields
	},
}
View Source
var BscWallet = BscDataSource{
	CryptoDataSource{
		Name: "BSC Wallet",
		Info: TrayElement{
			Content: "",
		},
		ChildElements: make(map[string]TrayElement),
	},
	BscCredentials{
		// contains filtered or unexported fields
	},
}
View Source
var EthWallet = EthDataSource{
	CryptoDataSource{
		Name: "ETH Wallet",
		Info: TrayElement{
			Content: "",
		},
		ChildElements: make(map[string]TrayElement),
	},
	EthCredentials{
		// contains filtered or unexported fields
	},
}
View Source
var HuobiWallet = HuobiDataSource{
	CryptoDataSource{
		Name: "Huobi",
		Info: TrayElement{
			Content: "",
		},
		ChildElements: make(map[string]TrayElement),
	},
	HuobiCredentials{
		// contains filtered or unexported fields
	},
}
View Source
var Manager = CryptoManager{}
View Source
var TronWallet = TronDataSource{
	CryptoDataSource{
		Name: "TRON Wallet",
		Info: TrayElement{
			Content: "",
		},
		ChildElements: make(map[string]TrayElement),
	},
	TronCredentials{
		// contains filtered or unexported fields
	},
}

Functions

This section is empty.

Types

type BalanceType

type BalanceType map[string]float64

func (BalanceType) Display

func (b BalanceType) Display(item *systray.MenuItem, children ChildrenElementsType)

func (BalanceType) TotalFiat

func (b BalanceType) TotalFiat() *money.Money

type BscCredentials

type BscCredentials struct {
	// contains filtered or unexported fields
}

type BscDataSource

type BscDataSource struct {
	CryptoDataSource
	BscCredentials
}

func (*BscDataSource) Collect

func (t *BscDataSource) Collect()

func (*BscDataSource) Display

func (t *BscDataSource) Display()

func (*BscDataSource) TotalFiat

func (t *BscDataSource) TotalFiat() *money.Money

type ChildrenElementsType

type ChildrenElementsType map[string]TrayElement

type CoinsCredentials

type CoinsCredentials struct {
	// contains filtered or unexported fields
}

type CoinsDataSource

type CoinsDataSource struct {
	CryptoDataSource
	CoinsCredentials
}

func (*CoinsDataSource) Collect

func (h *CoinsDataSource) Collect()

func (*CoinsDataSource) Display

func (h *CoinsDataSource) Display()

func (*CoinsDataSource) TotalFiat

func (h *CoinsDataSource) TotalFiat() *money.Money

type Collectible

type Collectible interface {
	Collect()
	TotalFiat() *money.Money
	Display()
}

type CryptoDataSource

type CryptoDataSource struct {
	Name          string
	Balance       BalanceType
	Info          TrayElement
	ChildElements ChildrenElementsType
}

type CryptoManager

type CryptoManager struct {
	// contains filtered or unexported fields
}

func (*CryptoManager) Collect

func (m *CryptoManager) Collect()

type EthCredentials

type EthCredentials struct {
	// contains filtered or unexported fields
}

type EthDataSource

type EthDataSource struct {
	CryptoDataSource
	EthCredentials
}

func (*EthDataSource) Collect

func (t *EthDataSource) Collect()

func (*EthDataSource) Display

func (t *EthDataSource) Display()

func (*EthDataSource) TotalFiat

func (t *EthDataSource) TotalFiat() *money.Money

type HuobiCredentials

type HuobiCredentials struct {
	// contains filtered or unexported fields
}

type HuobiDataSource

type HuobiDataSource struct {
	CryptoDataSource
	HuobiCredentials
}

func (*HuobiDataSource) Collect

func (h *HuobiDataSource) Collect()

func (*HuobiDataSource) Display

func (h *HuobiDataSource) Display()

func (*HuobiDataSource) TotalFiat

func (h *HuobiDataSource) TotalFiat() *money.Money

type TokenInfo

type TokenInfo struct {
	// contains filtered or unexported fields
}

type TrayElement

type TrayElement struct {
	Content string
	Item    *systray.MenuItem
}

type TronCredentials

type TronCredentials struct {
	// contains filtered or unexported fields
}

type TronDataSource

type TronDataSource struct {
	CryptoDataSource
	TronCredentials
}

func (*TronDataSource) Collect

func (t *TronDataSource) Collect()

func (*TronDataSource) Display

func (t *TronDataSource) Display()

func (*TronDataSource) TotalFiat

func (t *TronDataSource) TotalFiat() *money.Money

type TronJson

type TronJson struct {
	Tokens      []TronTokenJson `json:"tokens"`
	TotalFrozen int32           `json:"totalFrozen"`
}

type TronTokenJson

type TronTokenJson struct {
	Balance   string `json:"balance"`
	TokenAbbr string `json:"tokenAbbr"`
}

Jump to

Keyboard shortcuts

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