Documentation ¶
Index ¶
- Constants
- func Run()
- type AddTopicCancel
- type AddTopicPrompt
- type AddTopicSubmitMsg
- type ClientConnectedMsg
- type Config
- type Connection
- type ConnectionChangedMsg
- type ConnectionComponent
- type Consumer
- type ConsumerSelectedMsg
- type ConsumerTopicPartition
- type ConsumersLoadedMsg
- type ConsumersSelectedMsg
- type DataProvider
- type DetailsComponent
- type ErrorComponent
- type ErrorMsg
- type HelpComponent
- type InfoComponent
- type InfoSelectedMsg
- type Menu
- type ResetMsg
- type ResultComponent
- type Service
- func (s *Service) Close()
- func (s *Service) CreateTopic(name string, partitions int, replicationFactor int) (Topic, error)
- func (s *Service) FetchMessages(topic string, channel chan string) error
- func (s *Service) GetTopicConfig(name string) (TopicConfig, error)
- func (s *Service) GetTopicMetadata(topic string) (kafka.TopicMetadata, error)
- func (s *Service) ListConsumerGroups() ([]string, error)
- func (s *Service) ListConsumers(groupIds []string) ([]Consumer, error)
- func (s *Service) ListTopics() ([]Topic, error)
- func (s *Service) ResetConsumerOffsets(group string, topic string, offset int64) error
- type StartupComponent
- type TickMsg
- type Topic
- type TopicConfig
- type TopicSelectedMsg
- type TopicSettingsLoadedMsg
- type TopicsLoadedMsg
- type TopicsSelectedMsg
Constants ¶
View Source
const CANCEL = "ctrl+c"
View Source
const ConnectionsLabel = "Connections"
Menu and Table Labels
View Source
const ConsumerGroupsLabel = "Consumer Groups"
View Source
const ConsumerIdLabel = "ConsumerId"
View Source
const ConsumersLabel = "Consumers"
View Source
const DetailsLabel = "Details"
View Source
const ESC = "esc"
View Source
const GroupIdLabel = "GroupId"
View Source
const InfoLabel = "Info"
View Source
const MenuLabel = "Menu"
View Source
const QUIT = "q"
View Source
const ResultLabel = "Result"
View Source
const StateLabel = "State"
View Source
const TAB = "tab"
View Source
const TopicsLabel = "Topics"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddTopicCancel ¶
type AddTopicCancel struct{}
type AddTopicPrompt ¶
type AddTopicPrompt struct {
// contains filtered or unexported fields
}
func InitialAddTopicPrompt ¶
func InitialAddTopicPrompt(log *log.Logger) AddTopicPrompt
func (AddTopicPrompt) Init ¶
func (m AddTopicPrompt) Init() tea.Cmd
func (AddTopicPrompt) Update ¶
func (m AddTopicPrompt) Update(msg tea.Msg) (AddTopicPrompt, tea.Cmd)
func (AddTopicPrompt) View ¶
func (m AddTopicPrompt) View() string
type AddTopicSubmitMsg ¶
type AddTopicSubmitMsg struct {
// contains filtered or unexported fields
}
type ClientConnectedMsg ¶
type ClientConnectedMsg struct{}
type Config ¶
type Config struct {
Connections []Connection `json:"connections"`
}
func ReadConfig ¶
func (*Config) FindConnection ¶
func (c *Config) FindConnection(name string) (Connection, error)
type Connection ¶
type ConnectionChangedMsg ¶
type ConnectionChangedMsg Connection
type ConnectionComponent ¶
func (ConnectionComponent) Update ¶
func (c ConnectionComponent) Update(msg tea.Msg) (ConnectionComponent, tea.Cmd)
type Consumer ¶
type Consumer struct { GroupId string ConsumerId string State string TopicPartitions []ConsumerTopicPartition }
type ConsumerSelectedMsg ¶
type ConsumerSelectedMsg Consumer
type ConsumerTopicPartition ¶
type ConsumersLoadedMsg ¶
type ConsumersLoadedMsg []Consumer
type ConsumersSelectedMsg ¶
type ConsumersSelectedMsg struct{}
type DataProvider ¶
type DetailsComponent ¶
func (*DetailsComponent) SetConsumerDetails ¶
func (c *DetailsComponent) SetConsumerDetails(item Consumer)
func (*DetailsComponent) SetTopicDetails ¶
func (c *DetailsComponent) SetTopicDetails(item TopicConfig)
func (DetailsComponent) Update ¶
func (c DetailsComponent) Update(msg tea.Msg) (DetailsComponent, tea.Cmd)
type ErrorComponent ¶
func (ErrorComponent) Update ¶
func (c ErrorComponent) Update(msg tea.Msg) (ErrorComponent, tea.Cmd)
func (ErrorComponent) View ¶
func (c ErrorComponent) View() string
type HelpComponent ¶
func (HelpComponent) Update ¶
func (c HelpComponent) Update(msg tea.Msg) (HelpComponent, tea.Cmd)
type InfoComponent ¶
func NewInfoComponent ¶
func NewInfoComponent() (InfoComponent, error)
func (InfoComponent) Update ¶
func (c InfoComponent) Update(msg tea.Msg) (InfoComponent, tea.Cmd)
func (InfoComponent) View ¶
func (c InfoComponent) View() string
type InfoSelectedMsg ¶
type InfoSelectedMsg struct{}
type Menu ¶
func (*Menu) IsInfoSelected ¶
type ResultComponent ¶
func (*ResultComponent) SetConsumers ¶
func (c *ResultComponent) SetConsumers(items []Consumer)
func (*ResultComponent) SetTopics ¶
func (c *ResultComponent) SetTopics(items []Topic)
func (ResultComponent) Update ¶
func (c ResultComponent) Update(msg tea.Msg) (ResultComponent, tea.Cmd)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(conn Connection, logger *log.Logger) (*Service, error)
func (*Service) CreateTopic ¶
func (*Service) FetchMessages ¶
func (*Service) GetTopicConfig ¶
func (s *Service) GetTopicConfig(name string) (TopicConfig, error)
func (*Service) GetTopicMetadata ¶
func (s *Service) GetTopicMetadata(topic string) (kafka.TopicMetadata, error)
func (*Service) ListConsumerGroups ¶
func (*Service) ListConsumers ¶
func (*Service) ListTopics ¶
type StartupComponent ¶
func NewStartupComponent ¶
func NewStartupComponent() (StartupComponent, tea.Cmd)
func (*StartupComponent) Initialized ¶
func (c *StartupComponent) Initialized() bool
func (StartupComponent) Update ¶
func (c StartupComponent) Update(msg tea.Msg) (StartupComponent, tea.Cmd)
func (StartupComponent) View ¶
func (c StartupComponent) View() string
type TopicConfig ¶
type TopicSelectedMsg ¶
type TopicSelectedMsg Topic
type TopicSettingsLoadedMsg ¶
type TopicSettingsLoadedMsg TopicConfig
type TopicsLoadedMsg ¶
type TopicsLoadedMsg []Topic
type TopicsSelectedMsg ¶
type TopicsSelectedMsg struct{}
Click to show internal directories.
Click to hide internal directories.