Documentation
¶
Overview ¶
Package logtail displays streamed logs and handles tail-session input.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraAction ¶
ExtraAction is a caller-supplied action that runs without closing the tail view.
type LogLineMsg ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model displays streamed logs and handles tail-session input.
func New ¶
func New(ctx context.Context, canReload bool, extras []ExtraAction) *Model
New creates a log-tail model.
type ReloadKeys ¶
ReloadKeys contains the reload bindings shared by the picker and tail view.
func DefaultReloadKeys ¶
func DefaultReloadKeys() ReloadKeys
DefaultReloadKeys returns the default reload bindings.
func (ReloadKeys) WithEnabled ¶
func (k ReloadKeys) WithEnabled(enabled bool) ReloadKeys
WithEnabled sets whether both bindings match input and appear in help.
type StreamEndedMsg ¶
type StreamEndedMsg struct{ Err error }
StreamEndedMsg reports that the log stream ended.
Click to show internal directories.
Click to hide internal directories.