package
0.0.0-20250301175522-c58691ac551f
Repository: https://github.com/terradharitri/drt-go-chain.git
Documentation: pkg.go.dev

# Functions

InitLogHandler will open the websocket and start listening to logs.
NewStatusMetricsProvider will return a new instance of a StatusMetricsProvider.
StopWebSocket will send notify the node that the app is closed.

# Constants

No description provided by the author

# Variables

ErrEmptyNodeURL signals that an empty URL for the node has been provided.
ErrInvalidAddressLength signals that an invalid length has been provided for the node's address.
ErrInvalidFetchInterval signals that the duration in seconds between fetches is invalid.
ErrNilChanNodeIsStarting signals that a nil channel for node starting has been provided.
ErrNilTermuiPresenter signals that a nil termui presenter has been provided.
ErrTypeAssertionFailed signals that a value for a metric is not an accepted one.

# Structs

LogHandlerArgs hold the arguments needed to initialize log handling.
StatusMetricsProvider is the struct that will handle initializing the presenter and fetching updated metrics from the node.

# Interfaces

PresenterHandler defines what a component which will handle the presentation of data in the termui should do.