tui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelPrompt

func ChannelPrompt() (*cfg.ChannelCfg, error)

Types

type BlockModel

type BlockModel struct {
}

func (BlockModel) Init

func (b BlockModel) Init() tea.Cmd

func (BlockModel) Update

func (b BlockModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (BlockModel) View

func (b BlockModel) View() string

type CfgCmd

type CfgCmd func() tea.Msg

func CfgShow

func CfgShow(cfg *cfg.Configuration, path string) CfgCmd

type CfgModel

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

func NewCfgModel

func NewCfgModel(cfgCmd CfgCmd) *CfgModel

func (CfgModel) Init

func (c CfgModel) Init() tea.Cmd

func (CfgModel) Update

func (c CfgModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (CfgModel) View

func (c CfgModel) View() string

type ChannelCmd

type ChannelCmd func() tea.Msg

func ChannelAbiLookup

func ChannelAbiLookup(ctx context.Context, client mazzaroth.Client, channelId string) ChannelCmd

func ChannelDelete

func ChannelDelete(ctx context.Context, client mazzaroth.Client, tx *xdr.Transaction) ChannelCmd

func ChannelPause

func ChannelPause(ctx context.Context, client mazzaroth.Client, tx *xdr.Transaction) ChannelCmd

type ChannelModel

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

func NewChannelModel

func NewChannelModel(channelCmd ChannelCmd) *ChannelModel

func (ChannelModel) Init

func (c ChannelModel) Init() tea.Cmd

func (ChannelModel) Update

func (c ChannelModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ChannelModel) View

func (c ChannelModel) View() string

type ManifestModel

type ManifestModel struct {
}

func (ManifestModel) Init

func (m ManifestModel) Init() tea.Cmd

func (ManifestModel) Update

func (m ManifestModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ManifestModel) View

func (m ManifestModel) View() string

type RcptCmd

type RcptCmd func() tea.Msg

func RcptLookup

func RcptLookup(ctx context.Context, client mazzaroth.Client, channelId string, transactionId string) RcptCmd

type RcptModel

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

func NewRcptModel

func NewRcptModel(rcptCmd RcptCmd) *RcptModel

func (RcptModel) Init

func (r RcptModel) Init() tea.Cmd

func (RcptModel) Update

func (r RcptModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (RcptModel) View

func (r RcptModel) View() string

type TxCmd

type TxCmd func() tea.Msg

TODO explain that this is to protect the TxModel from other CMD types

func TxCall

func TxCall(ctx context.Context, client mazzaroth.Client, tx *xdr.Transaction) TxCmd

func TxLookup

func TxLookup(ctx context.Context, client mazzaroth.Client, channelId string, transactionId string) TxCmd

type TxModel

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

func NewTxModel

func NewTxModel(txCmd TxCmd) *TxModel

func (TxModel) Init

func (t TxModel) Init() tea.Cmd

func (TxModel) Update

func (t TxModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (TxModel) View

func (t TxModel) View() string

Jump to

Keyboard shortcuts

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