Documentation
¶
Index ¶
- Constants
- func AsyncProducer(addrs []string, topic string) error
- func Consumer1(addrs []string) error
- func Consumer2(addrs []string, groupID string, topics []string) error
- func PackData(data []byte) ([]byte, error)
- func SyncProducer(addrs []string, topic string) error
- func UnpackData(packedData []byte) ([]byte, error)
- type Consumer
- type KafkaMq
- type MqMessageHeader
- type Producer
Constants ¶
View Source
const ( MqMessageHeaderId = 0x12345678 MqMessageAesEncryptKey = "1234567890123456" CrcLen = 4 )
View Source
const (
RedisIpPort = "localhost:6379"
)
Variables ¶
This section is empty.
Functions ¶
func AsyncProducer ¶
func SyncProducer ¶
func UnpackData ¶
Types ¶
type Consumer ¶
type Consumer struct {
ConsumerHigh sarama.Consumer
Addrs []string
Topic string
// contains filtered or unexported fields
}
func (*Consumer) Partitions ¶
type MqMessageHeader ¶
Click to show internal directories.
Click to hide internal directories.