Documentation ¶
Index ¶
Constants ¶
View Source
const ( STATUS_RUNNING = iota << 1 STATUS_STOPPED )
Variables ¶
This section is empty.
Functions ¶
func GetOperationText ¶
Types ¶
type Consumer ¶
type Consumer struct { Name string Config *ConsumerConfig Consumer *cluster.Consumer // contains filtered or unexported fields }
func NewConsumer ¶
func NewConsumer(config ConsumerConfig, q chan<- DtsData) (consumer *Consumer, err error)
type ConsumerConfig ¶
type ConsumerConfig struct { Name string User string Password string Broker []string GroupId string Topic []string }
func NewConfig ¶
func NewConfig(broker, topic []string, groupid, user, password string) *ConsumerConfig
func (*ConsumerConfig) GetSASLUser ¶
func (c *ConsumerConfig) GetSASLUser() string
type ConsumerGroup ¶
type ConsumerGroup struct {
// contains filtered or unexported fields
}
func NewConsumerGroup ¶
func NewConsumerGroup() (sg *ConsumerGroup)
func (*ConsumerGroup) GetConsumer ¶
func (s *ConsumerGroup) GetConsumer(name string) *Consumer
func (*ConsumerGroup) GetQueue ¶
func (s *ConsumerGroup) GetQueue() <-chan DtsData
func (*ConsumerGroup) Register ¶
func (s *ConsumerGroup) Register(consumer *Consumer)
func (*ConsumerGroup) Shutdown ¶
func (s *ConsumerGroup) Shutdown()
func (*ConsumerGroup) Watch ¶
func (s *ConsumerGroup) Watch()
Click to show internal directories.
Click to hide internal directories.