mq

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaLogProducer

type KafkaLogProducer struct {
	Topic     string // Kafka topic
	Partition int    // Kafka partition
	Host      string // Kafka broker host
	Port      int    // Kafka broker port
	// contains filtered or unexported fields
}

func (*KafkaLogProducer) InitWriter

func (k *KafkaLogProducer) InitWriter()

InitWriter InitProducer 初始化 Kafka 生产者

func (*KafkaLogProducer) Write

func (k *KafkaLogProducer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL