Documentation ¶
Index ¶
- Constants
- type AuthMethod
- type Module
- func (m *Module) Brokers(projectID string) (*TabBrokersData, error)
- func (m *Module) Close() error
- func (m *Module) Connect(projectID string) (*State, error)
- func (m *Module) Consumers(projectID string) (*TabConsumersData, error)
- func (m *Module) CreateNewProject(projectID string) (*State, error)
- func (m *Module) DeleteProject(projectID string) error
- func (m *Module) ProjectState(projectID string) (*State, error)
- func (m *Module) SaveState(projectID string, state *State) (*State, error)
- func (m *Module) StartTopicConsuming(projectID string, consumingStrategy TopicConsumingStrategy, ...) (*TopicOutput, error)
- func (m *Module) StopTopicConsuming(projectID string) error
- func (m *Module) Topics(projectID string) (*TabTopicsData, error)
- type Project
- func (p *Project) Brokers() (*TabBrokersData, error)
- func (p *Project) Close() error
- func (p *Project) Connect() error
- func (p *Project) Consumers() (*TabConsumersData, error)
- func (p *Project) SaveState(state *State) error
- func (p *Project) StartTopicConsuming(ctx context.Context, consumingStrategy TopicConsumingStrategy, ...) (*TopicOutput, error)
- func (p *Project) StopTopicConsuming() error
- func (p *Project) Topics() (*TabTopicsData, error)
- type State
- type Tab
- type TabBrokersData
- type TabBrokersDataBroker
- type TabConsumersData
- type TabConsumersDataConsumer
- type TabTopicsData
- type TabTopicsDataTopic
- type TopicConsumingOutput
- type TopicConsumingStrategy
- type TopicMessage
- type TopicOutput
- type TopicPartition
Constants ¶
View Source
const ( AuthMethodPlaintext = "plaintext" AuthMethodSASLSSL = "sasl_ssl" )
View Source
const ( TabOverview = "overview" TabBrokers = "brokers" TabTopics = "topics" TabConsumers = "consumers" )
View Source
const ( TopicConsumingStrategyTime = "time" TopicConsumingStrategyOffsetSpecific = "offset_specific" TopicConsumingStrategyOffsetNewest = "offset_newest" TopicConsumingStrategyOffsetOldest = "offset_oldest" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMethod ¶
type AuthMethod string
type Module ¶
func (*Module) CreateNewProject ¶
func (*Module) DeleteProject ¶
func (*Module) StartTopicConsuming ¶
func (m *Module) StartTopicConsuming( projectID string, consumingStrategy TopicConsumingStrategy, topic, timeFrom string, offsetValue int64, ) (*TopicOutput, error)
func (*Module) StopTopicConsuming ¶
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func NewProject ¶
func (*Project) Brokers ¶
func (p *Project) Brokers() (*TabBrokersData, error)
func (*Project) Consumers ¶
func (p *Project) Consumers() (*TabConsumersData, error)
func (*Project) StartTopicConsuming ¶
func (p *Project) StartTopicConsuming( ctx context.Context, consumingStrategy TopicConsumingStrategy, topic, timeFrom string, offsetValue int64, ) (*TopicOutput, error)
nolint: funlen, cyclop, gocognit
func (*Project) StopTopicConsuming ¶
type TabBrokersData ¶
type TabBrokersData struct { IsConnected bool `json:"isConnected"` Count int `json:"count"` List []*TabBrokersDataBroker `json:"list"` }
type TabBrokersDataBroker ¶
type TabConsumersData ¶
type TabConsumersData struct { IsConnected bool `json:"isConnected"` Count int `json:"count"` List []*TabConsumersDataConsumer `json:"list"` }
type TabTopicsData ¶
type TabTopicsData struct { IsConnected bool `json:"isConnected"` Count int `json:"count"` List []*TabTopicsDataTopic `json:"list"` }
type TabTopicsDataTopic ¶
type TopicConsumingOutput ¶
type TopicConsumingOutput struct {
Messages []*TopicMessage `json:"messages"`
}
type TopicConsumingStrategy ¶
type TopicConsumingStrategy string
type TopicMessage ¶
type TopicOutput ¶
type TopicOutput struct { TopicName string `json:"topicName"` StartFromTime string `json:"startFromTime"` CountTotal int64 `json:"countTotal"` CountCurrent int64 `json:"countCurrent"` Partitions []*TopicPartition `json:"partitions"` }
Click to show internal directories.
Click to hide internal directories.