Documentation ¶
Index ¶
- Constants
- Variables
- func ColorizeAge(age uint32, text string, opts ...color.Option) string
- func FormatAge(age uint32) string
- func ToScid(id uint64) string
- type Channel
- func (c Channel) Cursor() (int, int)
- func (c Channel) Delete(g *gocui.Gui) error
- func (c Channel) Empty() bool
- func (c Channel) Limits() (pageSize int, fullSize int)
- func (c Channel) Name() string
- func (c Channel) Origin() (int, int)
- func (c *Channel) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
- func (c *Channel) SetCursor(x, y int) error
- func (c *Channel) SetOrigin(x, y int) error
- func (c Channel) Speed() (int, int, int, int)
- func (c *Channel) Wrap(v *gocui.View) View
- type Channels
- func (c Channels) Cursor() (int, int)
- func (c *Channels) Delete(g *gocui.Gui) error
- func (c Channels) Index() int
- func (c *Channels) Limits() (pageSize int, fullSize int)
- func (c Channels) Name() string
- func (c Channels) Origin() (int, int)
- func (c *Channels) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
- func (c *Channels) SetCursor(cx, cy int) error
- func (c *Channels) SetOrigin(ox, oy int) error
- func (c Channels) Sort(column string, order models.Order)
- func (c *Channels) Speed() (int, int, int, int)
- func (c *Channels) Wrap(v *gocui.View) View
- type FwdingHist
- func (c FwdingHist) Cursor() (int, int)
- func (c FwdingHist) Delete(g *gocui.Gui) error
- func (c FwdingHist) Index() int
- func (c *FwdingHist) Limits() (pageSize int, fullSize int)
- func (c FwdingHist) Name() string
- func (c FwdingHist) Origin() (int, int)
- func (c *FwdingHist) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
- func (c *FwdingHist) SetCursor(cx, cy int) error
- func (c *FwdingHist) SetOrigin(ox, oy int) error
- func (c *FwdingHist) Sort(column string, order models.Order)
- func (c *FwdingHist) Speed() (int, int, int, int)
- func (c *FwdingHist) Wrap(v *gocui.View) View
- type Header
- type Menu
- func (h Menu) Current() string
- func (h Menu) Cursor() (int, int)
- func (c Menu) Delete(g *gocui.Gui) error
- func (h Menu) Limits() (pageSize int, fullSize int)
- func (h Menu) Name() string
- func (h Menu) Origin() (int, int)
- func (h Menu) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
- func (h *Menu) SetCursor(x, y int) error
- func (h *Menu) SetOrigin(x, y int) error
- func (h Menu) Speed() (int, int, int, int)
- func (h *Menu) Wrap(v *gocui.View) View
- type Routing
- func (c Routing) Cursor() (int, int)
- func (c *Routing) Delete(g *gocui.Gui) error
- func (c Routing) Index() int
- func (c *Routing) Limits() (pageSize int, fullSize int)
- func (c Routing) Name() string
- func (c Routing) Origin() (int, int)
- func (c *Routing) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
- func (c *Routing) SetCursor(cx, cy int) error
- func (c *Routing) SetOrigin(ox, oy int) error
- func (c *Routing) Speed() (int, int, int, int)
- func (c *Routing) Wrap(v *gocui.View) View
- type Summary
- type Transaction
- func (c Transaction) Cursor() (int, int)
- func (c Transaction) Delete(g *gocui.Gui) error
- func (c Transaction) Empty() bool
- func (c Transaction) Limits() (pageSize int, fullSize int)
- func (c Transaction) Name() string
- func (c Transaction) Origin() (int, int)
- func (c *Transaction) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
- func (c *Transaction) SetCursor(x, y int) error
- func (c *Transaction) SetOrigin(x, y int) error
- func (c Transaction) Speed() (int, int, int, int)
- func (c *Transaction) Wrap(v *gocui.View) View
- type Transactions
- func (c Transactions) Cursor() (int, int)
- func (c Transactions) Delete(g *gocui.Gui) error
- func (c Transactions) Index() int
- func (c *Transactions) Limits() (pageSize int, fullSize int)
- func (c Transactions) Name() string
- func (c Transactions) Origin() (int, int)
- func (c *Transactions) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
- func (c *Transactions) SetCursor(cx, cy int) error
- func (c *Transactions) SetOrigin(ox, oy int) error
- func (c *Transactions) Sort(column string, order models.Order)
- func (c *Transactions) Speed() (int, int, int, int)
- func (c *Transactions) Wrap(v *gocui.View) View
- type View
- type Views
Constants ¶
View Source
const ( CHANNEL = "channel" CHANNEL_HEADER = "channel_header" CHANNEL_FOOTER = "channel_footer" )
View Source
const ( CHANNELS = "channels" CHANNELS_COLUMNS = "channels_columns" CHANNELS_FOOTER = "channels_footer" )
View Source
const ( FWDINGHIST = "fwdinghist" FWDINGHIST_COLUMNS = "fwdinghist_columns" FWDINGHIST_FOOTER = "fwdinghist_footer" )
View Source
const ( MENU = "menu" MENU_HEADER = "menu_header" MENU_FOOTER = "menu_footer" )
View Source
const ( ROUTING = "routing" ROUTING_COLUMNS = "routing_columns" ROUTING_FOOTER = "routing_footer" )
View Source
const ( SUMMARY_LEFT = "summary_left" SUMMARY_RIGHT = "summary_right" )
View Source
const ( TRANSACTION = "transaction" TRANSACTION_HEADER = "transaction_header" TRANSACTION_FOOTER = "transaction_footer" )
View Source
const ( TRANSACTIONS = "transactions" TRANSACTIONS_COLUMNS = "transactions_columns" TRANSACTIONS_FOOTER = "transactions_footer" )
View Source
const (
HEADER = "myheader"
)
Variables ¶
View Source
var DefaultChannelsColumns = []string{
"STATUS",
"ALIAS",
"GAUGE",
"LOCAL",
"CAP",
"SENT",
"RECEIVED",
"HTLC",
"UNSETTLED",
"CFEE",
"LAST UPDATE",
"PRIVATE",
"ID",
}
View Source
var DefaultFwdinghistColumns = []string{
"ALIAS_IN",
"ALIAS_OUT",
"AMT_IN",
"AMT_OUT",
"FEE",
"TIMESTAMP_NS",
"CHAN_ID_IN",
"CHAN_ID_OUT",
}
View Source
var DefaultRoutingColumns = []string{
"DIR",
"STATUS",
"IN_CHANNEL",
"IN_ALIAS",
"OUT_CHANNEL",
"OUT_ALIAS",
"AMOUNT",
"FEE",
"LAST UPDATE",
"DETAIL",
}
View Source
var DefaultTransactionsColumns = []string{
"DATE",
"HEIGHT",
"CONFIR",
"AMOUNT",
"FEE",
"ADDRESSES",
}
Functions ¶
func ColorizeAge ¶ added in v0.4.0
Types ¶
type FwdingHist ¶ added in v0.4.0
type FwdingHist struct {
// contains filtered or unexported fields
}
func NewFwdingHist ¶ added in v0.4.0
func NewFwdingHist(cfg *config.View, hist *models.FwdingHist) *FwdingHist
func (FwdingHist) Cursor ¶ added in v0.4.0
func (c FwdingHist) Cursor() (int, int)
func (FwdingHist) Index ¶ added in v0.4.0
func (c FwdingHist) Index() int
func (*FwdingHist) Limits ¶ added in v0.4.0
func (c *FwdingHist) Limits() (pageSize int, fullSize int)
func (FwdingHist) Name ¶ added in v0.4.0
func (c FwdingHist) Name() string
func (FwdingHist) Origin ¶ added in v0.4.0
func (c FwdingHist) Origin() (int, int)
func (*FwdingHist) Set ¶ added in v0.4.0
func (c *FwdingHist) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
func (*FwdingHist) SetCursor ¶ added in v0.4.0
func (c *FwdingHist) SetCursor(cx, cy int) error
func (*FwdingHist) SetOrigin ¶ added in v0.4.0
func (c *FwdingHist) SetOrigin(ox, oy int) error
type Routing ¶ added in v0.2.0
type Routing struct {
// contains filtered or unexported fields
}
func NewRouting ¶ added in v0.2.0
type Summary ¶
type Summary struct {
// contains filtered or unexported fields
}
func NewSummary ¶
func NewSummary(info *models.Info, channelsBalance *models.ChannelsBalance, walletBalance *models.WalletBalance, channels *models.Channels) *Summary
type Transaction ¶ added in v0.1.0
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransaction ¶ added in v0.1.0
func NewTransaction(transactions *models.Transactions) *Transaction
func (Transaction) Cursor ¶ added in v0.1.0
func (c Transaction) Cursor() (int, int)
func (Transaction) Empty ¶ added in v0.1.0
func (c Transaction) Empty() bool
func (Transaction) Limits ¶ added in v0.2.0
func (c Transaction) Limits() (pageSize int, fullSize int)
func (Transaction) Name ¶ added in v0.1.0
func (c Transaction) Name() string
func (Transaction) Origin ¶ added in v0.1.0
func (c Transaction) Origin() (int, int)
func (*Transaction) Set ¶ added in v0.1.0
func (c *Transaction) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
func (*Transaction) SetCursor ¶ added in v0.1.0
func (c *Transaction) SetCursor(x, y int) error
func (*Transaction) SetOrigin ¶ added in v0.1.0
func (c *Transaction) SetOrigin(x, y int) error
type Transactions ¶ added in v0.1.0
type Transactions struct {
// contains filtered or unexported fields
}
func NewTransactions ¶ added in v0.1.0
func NewTransactions(cfg *config.View, txs *models.Transactions) *Transactions
func (Transactions) Cursor ¶ added in v0.1.0
func (c Transactions) Cursor() (int, int)
func (Transactions) Index ¶ added in v0.1.0
func (c Transactions) Index() int
func (*Transactions) Limits ¶ added in v0.2.0
func (c *Transactions) Limits() (pageSize int, fullSize int)
func (Transactions) Name ¶ added in v0.1.0
func (c Transactions) Name() string
func (Transactions) Origin ¶ added in v0.1.0
func (c Transactions) Origin() (int, int)
func (*Transactions) Set ¶ added in v0.1.0
func (c *Transactions) Set(g *gocui.Gui, x0, y0, x1, y1 int) error
func (*Transactions) SetCursor ¶ added in v0.1.0
func (c *Transactions) SetCursor(cx, cy int) error
func (*Transactions) SetOrigin ¶ added in v0.1.0
func (c *Transactions) SetOrigin(ox, oy int) error
type Views ¶
type Views struct { Main View Header *Header Menu *Menu Summary *Summary Channels *Channels Channel *Channel Transactions *Transactions Transaction *Transaction Routing *Routing FwdingHist *FwdingHist }
Click to show internal directories.
Click to hide internal directories.