types

package
v0.0.0-...-d92abce Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	LogIn(userName string, password string) (retObjSettings Settings, retObjAuth Auth, err error)
	LogInCached(userName string) (retObjSettings Settings, retObjAuth Auth, err error)

	SaveCachedToken(userName string, token string) (err error)

	GetUserName() (retVal string)
	GetUserToken() (retVal string)

	RenewToken() (err error)
}

type Balance

type Balance struct {
	Positions []WalletPosition
	Gain      float64
	Deposits  float64
}

type CardEntry

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

type CoinConfig

type CoinConfig struct {
	Currency string
	Wallet   string
	Pool     string
}

type KunaOrder

type KunaOrder struct {
	ID              int       `json:"id"`
	Side            string    `json:"side"`
	OrdType         string    `json:"ord_type"`
	Price           string    `json:"price"`
	AvgPrice        string    `json:"avg_price"`
	State           string    `json:"state"`
	Market          string    `json:"market"`
	CreatedAt       time.Time `json:"created_at"`
	Volume          string    `json:"volume"`
	RemainingVolume string    `json:"remaining_volume"`
	ExpectedVolume  string    `json:"executed_volume"`
	TradesCount     int       `json:"trades_count"`
}

type KunaOrdersBook

type KunaOrdersBook struct {
	Asks []KunaOrder `json:"asks"`
	Bids []KunaOrder `json:"bids"`
}

type Market

type Market interface {
	GetBalance() (retVal Balance, err error)
}

type MinerEntry

type MinerEntry struct {
	MinerName   string
	Currency    string
	RunningTime string
	Hashrate    []string
	MiningPool  []string
	Cards       []CardEntry
}

func (*MinerEntry) SetFieldForIndex

func (this *MinerEntry) SetFieldForIndex(data string, index int)

func (MinerEntry) ShortDesc

func (miner MinerEntry) ShortDesc() (retVal string)

type Settings

type Settings interface {
	GetValue(path string) (retVal string, err error)
	SetValue(path string, value string) (err error)
}

type TGCommand

type TGCommand struct {
	Msg      *tgbotapi.Message
	Settings Settings
}

type TelegramSettings

type TelegramSettings struct {
	LastUpdate int
}

type TelegramUser

type TelegramUser struct {
	ID       string
	Username string
}

type TransactionEntry

type TransactionEntry struct {
	Time        time.Time
	Currency    string
	FromAddress string
	ToAddress   string
	Value       float64
}

type WalletPosition

type WalletPosition struct {
	Type   string
	Name   string
	Amount float64
	Value  float64
}

Jump to

Keyboard shortcuts

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