Versions in this module Expand all Collapse all v0 v0.1.35 Aug 9, 2026 v0.1.34 Aug 3, 2026 Changes in this version + const ConfigValueMask + const DefaultFooterHeight + const DefaultHeaderHeight + const DefaultSidebarWidth + const DefaultTableHeight + const ErrorTypeAuthentication + const ErrorTypeConfiguration + const ErrorTypeConnection + const ErrorTypeDataLoad + const ErrorTypeNavigation + const ErrorTypeRender + const ErrorTypeTimeout + const ErrorTypeValidation + const MinContentHeight + const MinContentWidth + const SkewError + const SkewNone + const SkewWarning + var BrokerCSVHeader = []string + var ConsumerGroupCSVHeader = []string + var Log *slog.Logger = slog.Default() + var MessageCSVHeader = []string + var TopicCSVHeader = []string + func CreateHighlightedItem(item list.Item, searchQuery string) list.Item + func DebugLog(format string, args ...interface{}) + func DefaultExportPath(topic string, m api.Message) string + func ExportMessageJSON(path string, topic string, m api.Message) error + func FilterItems(items []list.Item, query string, caseSensitive bool) []list.Item + func FormatBytes2dp(n int64) string + func FormatConfigValue(name, value string, sensitive bool) string + func FormatDiskUsage(segmentSize int64, segmentCount int) string + func FormatISR(inSync, replica int) (text string, alert bool) + func FormatSkew(skew *float64) string + func FormatTimestamp(t time.Time) string + func FuzzyFilterItems(items []list.Item, query string, caseSensitive bool) []list.Item + func FuzzyMatch(query, text string, caseSensitive bool) bool + func HighlightSearchMatches(text, searchQuery string) string + func HighlightSearchMatchesWithConfig(text, searchQuery string, config HighlightConfig) string + func InitLogger() + func IsValidDimensions(width, height int) bool + func NaturalLess(a, b string) bool + func RemoveHighlighting(text string) string + func SavePrefs(p Prefs) error + func SetTimezone(name string) error + func SkewSeverity(skew *float64) int + func SortResourceListNaturally(items []list.Item) + func SortResourceListWithOptions(items []list.Item, options SortOptions) + func SortStringSlice(items []string, options SortOptions) + func SortTableRowsNaturally(rows []table.Row) + func SortTableRowsWithOptions(rows []table.Row, options SortOptions) + func WriteBrokerCSV(w io.Writer, brokers []api.BrokerInfo, stats map[int32]api.BrokerStats) error + func WriteConsumerGroupCSV(w io.Writer, groups []api.ConsumerGroup) error + func WriteMessagesCSV(w io.Writer, msgs []api.Message, f CSVFormat) error + func WriteTopicCSV(w io.Writer, topics []TopicCSVRow) error + type CSVFormat struct + LineTerminator string + Quote rune + QuoteAll bool + Separator rune + func DefaultCSVFormat() CSVFormat + type ConsumerGroupListItem struct + Group api.ConsumerGroup + GroupID string + Highlighted bool + SearchQuery string + Selected bool + func (c *ConsumerGroupListItem) SetSelected(selected bool) + func (c ConsumerGroupListItem) FilterValue() string + func (c ConsumerGroupListItem) GetID() string + func (c ConsumerGroupListItem) IsSelected() bool + type FilterableItem interface + FilterValue func() string + type HighlightConfig struct + BackgroundColor string + Bold bool + CaseSensitive bool + ForegroundColor string + UseRegex bool + func DefaultHighlightConfig() HighlightConfig + func SearchHighlightConfig() HighlightConfig + type HighlightableItem interface + ClearHighlight func() + GetDisplayText func() string + SetHighlight func(query string) + type HighlightedResourceListItem struct + ResourceItem ResourceItem + SearchQuery string + func (h HighlightedResourceListItem) FilterValue() string + func (h HighlightedResourceListItem) GetID() string + type HighlightedTopicItem struct + Name string + SearchQuery string + Topic api.Topic + func (h HighlightedTopicItem) FilterValue() string + func (h HighlightedTopicItem) GetID() string + type MessageListItem struct + Highlighted bool + Index int + Message api.Message + SearchQuery string + Selected bool + func (m *MessageListItem) SetSelected(selected bool) + func (m MessageListItem) FilterValue() string + func (m MessageListItem) GetID() string + func (m MessageListItem) IsSelected() bool + type MinimalResourceItem struct + ID string + func (m *MinimalResourceItem) GetDetails() map[string]string + func (m *MinimalResourceItem) GetID() string + func (m *MinimalResourceItem) GetValues() []string + type NaturalSort []string + func (s NaturalSort) Len() int + func (s NaturalSort) Less(i, j int) bool + func (s NaturalSort) Swap(i, j int) + type Navigation struct + CanGoBack bool + Current string + Previous []string + type PageState struct + EditMode bool + Error error + FilterMode bool + Loading bool + SearchMode bool + type Prefs struct + HideInternalTopics bool + Projections map[string]TopicProjection + SavedFilters []SavedFilter + func LoadPrefs() Prefs + type ResourceItem interface + GetDetails func() map[string]string + GetID func() string + GetValues func() []string + type ResourceListItem struct + Highlighted bool + ResourceItem ResourceItem + SearchQuery string + Selected bool + func (r *ResourceListItem) SetSelected(selected bool) + func (r ResourceListItem) FilterValue() string + func (r ResourceListItem) GetID() string + func (r ResourceListItem) IsSelected() bool + type SavedFilter struct + Expr string + Name string + type SearchConfig struct + CaseSensitive bool + HighlightMatches bool + UseFuzzy bool + UseRegex bool + type SelectableItem interface + GetID func() string + IsSelected func() bool + SetSelected func(selected bool) + type SlogWriter struct + func NewSlogWriter(logger *slog.Logger) *SlogWriter + func (w *SlogWriter) Write(p []byte) (int, error) + type SortOptions struct + CaseSensitive bool + ColumnIndex int + Natural bool + Order SortOrder + func DefaultSortOptions() SortOptions + type SortOrder int + const SortAscending + const SortDescending + type StatusInfo struct + Message string + Persistent bool + Timestamp string + Type StatusType + type StatusType int + const StatusTypeError + const StatusTypeInfo + const StatusTypeSuccess + const StatusTypeWarning + type TableConfig struct + Columns []table.Column + Height int + Selectable bool + ShowHeader bool + Styles table.Styles + Width int + type TopicCSVRow struct + Internal bool + MessageCount int64 + Name string + OutOfSync int + Partitions int32 + ReplicationFactor int16 + Size int64 + type TopicListItem struct + Highlighted bool + Name string + SearchQuery string + Selected bool + Topic api.Topic + func (t *TopicListItem) SetSelected(selected bool) + func (t TopicListItem) FilterValue() string + func (t TopicListItem) GetID() string + func (t TopicListItem) IsSelected() bool + type TopicProjection struct + Key string + Value string + type UIError struct + Cause error + Message string + Type string + func NewUIError(errorType, message string, cause error) UIError + func (e UIError) Error() string + type ViewDimensions struct + ContentHeight int + ContentWidth int + FooterHeight int + HeaderHeight int + Height int + SidebarWidth int + Width int + func CalculateContentDimensions(totalWidth, totalHeight, sidebarWidth, footerHeight, headerHeight int) ViewDimensions