Documentation ¶
Index ¶
- func CloseTopicPage()
- func Contains[T comparable](s []T, e T) bool
- func CreateMainPage(dataSource api.KafkaDataSource, pages *tview.Pages, app *tview.Application, ...) *tview.Flex
- func CreateSearchInput(table *tview.Table, dataSource api.KafkaDataSource, pages *tview.Pages, ...) *tview.InputField
- func CreateTopicPage(dataSource api.KafkaDataSource, pages *tview.Pages, app *tview.Application, ...) *tview.Flex
- func Init(useMock bool)
- func OpenUI(dataSource api.KafkaDataSource)
- func PageConsumeTopic(app *tview.Application, dataSource api.KafkaDataSource)
- func ReportConsumption(message string, textView *tview.TextView)
- func SetupTableInput(table *tview.Table, app *tview.Application, pages *tview.Pages, ...)
- func ShowNotification(message string)
- func UpdateTable(table *tview.Table, dataSource api.KafkaDataSource)
- type DetailPage
- type ResouceName
- type SearchMode
- type UIEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseTopicPage ¶ added in v0.1.7
func CloseTopicPage()
func CreateMainPage ¶
func CreateSearchInput ¶
func CreateSearchInput(table *tview.Table, dataSource api.KafkaDataSource, pages *tview.Pages, app *tview.Application, modal *tview.Modal) *tview.InputField
func CreateTopicPage ¶ added in v0.1.1
func CreateTopicPage(dataSource api.KafkaDataSource, pages *tview.Pages, app *tview.Application, msgChannel chan UIEvent) *tview.Flex
func OpenUI ¶
func OpenUI(dataSource api.KafkaDataSource)
func PageConsumeTopic ¶ added in v0.1.6
func PageConsumeTopic(app *tview.Application, dataSource api.KafkaDataSource)
func ReportConsumption ¶ added in v0.1.1
func SetupTableInput ¶
func SetupTableInput(table *tview.Table, app *tview.Application, pages *tview.Pages, dataSource api.KafkaDataSource, msgChannel chan UIEvent)
func ShowNotification ¶
func ShowNotification(message string)
func UpdateTable ¶
func UpdateTable(table *tview.Table, dataSource api.KafkaDataSource)
Types ¶
type DetailPage ¶
type DetailPage struct {
// contains filtered or unexported fields
}
func NewDetailPage ¶
func NewDetailPage(app *tview.Application, pages *tview.Pages, value string) *DetailPage
func (*DetailPage) Show ¶
func (vp *DetailPage) Show()
type ResouceName ¶
type ResouceName []string // array because it can have multiple names
var ( Context ResouceName = []string{"context", "ctx", "kafka", "broker"} Topic ResouceName = []string{"topics", "ts"} ConsumerGroup ResouceName = []string{"consumergroups", "groups", "consumers", "cgs"} )
type SearchMode ¶
type SearchMode string
const ( TableSearch SearchMode = "TableSearch" ResouceSearch SearchMode = "ResouceSearch" )
Click to show internal directories.
Click to hide internal directories.