models

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Boot

type Boot struct {
	IsBoot     bool   `json:"boot"`
	IsFirstRun bool   `json:"firstrun"`
	IsBootMenu bool   `json:"menu"`
	IsLoading  bool   `json:"loading"`
	IsScreen   string `json:"screen"`
}

type DaemonConfig

type DaemonConfig struct {
	Config  *pod.Config `json:"config"`
	Schema  pod.Schema  `json:"schema"`
	Widgets map[string]interface{}
}

type DuoUI

type DuoUI struct {
	DuoUIboot          *Boot
	DuoUIwindow        *app.Window
	DuoUIcontext       *layout.Context
	DuoUItheme         *parallel.DuoUItheme
	DuoUIconstraints   *layout.Constraints
	DuoUIico           map[string]*parallel.DuoUIicon
	DuoUIcomponents    *DuoUIcomponents
	DuoUIconfiguration *DuoUIconfiguration
	Quit               chan struct{}
	Ready              chan struct{}
	IsReady            bool
	DuoUIready         chan struct{}
	DuoUIisReady       bool
	CurrentPage        string
}

type DuoUIalert

type DuoUIalert struct {
	Time      time.Time   `json:"time"`
	Title     string      `json:"title"`
	Message   interface{} `json:"message"`
	AlertType string      `json:"type"`
}

type DuoUIbalance

type DuoUIbalance struct {
	Balance string `json:"balance"`
}

type DuoUIbestBlockHash

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

type DuoUIblock

type DuoUIblock struct {
	Height     int64   `json:"height"`
	BlockHash  string  `json:"hash"`
	PowAlgoID  uint32  `json:"pow"`
	Difficulty float64 `json:"diff"`
	Amount     float64 `json:"amount"`
	TxNum      int     `json:"txnum"`
	Time       string  `json:"time"`
}

type DuoUIblockCount

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

type MempoolInfo struct { string}

type DuoUIcommand

type DuoUIcommand struct {
	Com      interface{}
	ComID    string
	Category string
	Out      func()
	Time     time.Time
}

type DuoUIcommandsHistory

type DuoUIcommandsHistory struct {
	Commands       []DuoUIcommand `json:"coms"`
	CommandsNumber int            `json:"comnumber"`
}

type DuoUIcommandsNumber

type DuoUIcommandsNumber struct {
	CommandsNumber int `json:"comnumber"`
}

type DuoUIcomponent

type DuoUIcomponent struct {
	Layout layout.Flex
	Inset  layout.Inset
}

type DuoUIcomponents

type DuoUIcomponents struct {
	View   DuoUIcomponent
	Header DuoUIcomponent
	Footer DuoUIcomponent
	Logo DuoUIcomponent
	// Log                DuoUIcomponent
	Body           DuoUIcomponent
	Sidebar        DuoUIcomponent
	Menu           DuoUIcomponent
	Content        DuoUIcomponent
	Overview       DuoUIcomponent
	Send           DuoUIcomponent
	SendButtons    DuoUIcomponent
	Receive        DuoUIcomponent
	ReceiveButtons DuoUIcomponent
	Status         DuoUIcomponent
	StatusItem     DuoUIcomponent
	History        DuoUIcomponent
	AddressBook    DuoUIcomponent
	Explorer       DuoUIcomponent
	Network        DuoUIcomponent
	Console        DuoUIcomponent
	// ConsoleOutput      DuoUIcomponent
	// ConsoleInput       DuoUIcomponent
	Settings DuoUIcomponent
}

type DuoUIconfTabs

type DuoUIconfTabs struct {
	Current  string
	TabsList map[string]*widget.Button
}

type DuoUIconfiguration

type DuoUIconfiguration struct {
	Abbrevation        string
	PrimaryTextColor   color.RGBA
	SecondaryTextColor color.RGBA
	PrimaryBgColor     color.RGBA
	SecondaryBgColor   color.RGBA
	Navigations        map[string]*parallel.DuoUIthemeNav
	Tabs               DuoUIconfTabs
	Settings           DuoUIsettings
}

type DuoUIconnections

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

type DuoUIdifficulty

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

type DuoUIhashes

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

type DuoUIheight

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

type DuoUIlocalHost

type DuoUIlocalHost struct {
	Cpu        []cpu.InfoStat        `json:"cpu"`
	CpuPercent []float64             `json:"cpupercent"`
	Memory     mem.VirtualMemoryStat `json:"mem"`
	Disk       disk.UsageStat        `json:"disk"`
}

type DuoUInetLastBlock

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

type DuoUInetworkHash

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

type DuoUIsettings

type DuoUIsettings struct {
	//db DuoUIdb
	//Display mod.DisplayConfig `json:"display"`
	Daemon DaemonConfig `json:"daemon"`
}

type DuoUIstatus

type DuoUIstatus struct {
	Version       string                           `json:"ver"`
	WalletVersion map[string]btcjson.VersionResult `json:"walletver"`
	UpTime        int64                            `json:"uptime"`
	CurrentNet    string                           `json:"net"`
	Chain         string                           `json:"chain"`
}

System Ststus

type DuoUItransactionExcerpt

type DuoUItransactionExcerpt struct {
	Balance       float64 `json:"balance"`
	Amount        float64 `json:"amount"`
	Category      string  `json:"category"`
	Confirmations int64   `json:"confirmations"`
	Time          string  `json:"time"`
	TxID          string  `json:"txid"`
	Comment       string  `json:"comment,omitempty"`
}

type DuoUItransactions

type DuoUItransactions struct {
	Txs       []DuoUItx `json:"txs"`
	TxsNumber int       `json:"txsnumber"`
}

type DuoUItransactionsExcerpts

type DuoUItransactionsExcerpts struct {
	TxsListNumber int
	Txs           []DuoUItransactionExcerpt `json:"txs"`
	TxsNumber     int                       `json:"txsnumber"`
	Balance       float64                   `json:"balance"`
	BalanceHeight float64                   `json:"balanceheight"`
}

type DuoUItransactionsNumber

type DuoUItransactionsNumber struct {
	TxsNumber int `json:"txsnumber"`
}

type DuoUItx

type DuoUItx struct {
	TxID          string
	Amount        float64
	Category      string
	Confirmations int64
	Time          time.Time
	Added         time.Time
}

type DuoUIunconfirmed

type DuoUIunconfirmed struct {
	Unconfirmed string `json:"unconfirmed"`
}

Jump to

Keyboard shortcuts

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