messages

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigs

func GetConfigs() string

GetConfigs returns the node config.json file if possible.

func StartFastCatchup

func StartFastCatchup(network string) tea.Cmd

StartFastCatchup attempts to start fast catchup for a given network.

func StopFastCatchup

func StopFastCatchup(network string) tea.Cmd

StopFastCatchup attempts to stop fast catchup for a given network.

Types

type AccountStatusMsg

type AccountStatusMsg struct {
	Balances map[types.Address]map[uint64]uint64
	Err      error
}

AccountStatusMsg has account balance information.

type NetworkMsg

type NetworkMsg struct {
	GenesisID   string
	GenesisHash types.Digest
	NodeVersion string
	Err         error
}

NetworkMsg holds network information.

type Requestor

type Requestor struct {
	Client *algod.Client
	// contains filtered or unexported fields
}

Requestor provides an opaque pointer for an algod client.

func MakeRequestor

func MakeRequestor(client *algod.Client, dataDir string) *Requestor

MakeRequestor builds the requestor object.

func (Requestor) GetAccountStatusCmd

func (r Requestor) GetAccountStatusCmd(accounts []types.Address) tea.Cmd

GetAccountStatusCmd provides a tea.Cmd for fetching a AccountStatusMsg.

func (Requestor) GetNetworkCmd

func (r Requestor) GetNetworkCmd() tea.Cmd

GetNetworkCmd provides a tea.Cmd for fetching a NetworkMsg.

func (Requestor) GetStatusCmd

func (r Requestor) GetStatusCmd() tea.Cmd

GetStatusCmd provides a tea.Cmd for fetching a StatusMsg.

type StatusMsg

type StatusMsg struct {
	Status models.NodeStatus
	Error  error
}

StatusMsg has node status information.

Jump to

Keyboard shortcuts

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