Documentation ¶
Index ¶
- Constants
- type KafkaOutput
- func (out *KafkaOutput) ChanInfo() string
- func (out *KafkaOutput) Close() error
- func (out *KafkaOutput) Init(config transport.Configer) error
- func (out *KafkaOutput) Start() error
- func (out *KafkaOutput) Version() string
- func (out *KafkaOutput) Write(msg []byte) (int, error)
- func (out *KafkaOutput) WriteToTopic() error
Constants ¶
View Source
const (
VERSION = "0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KafkaOutput ¶
type KafkaOutput struct { Addrs []string `json:"addrs"` Topic string `json:"topic"` MaxProcs int `json:"max_procs"` //最大并发写协程 Message chan []byte //将数据写入这个管道中 // contains filtered or unexported fields }
func NewKafkaOutput ¶
func NewKafkaOutput() *KafkaOutput
func (*KafkaOutput) ChanInfo ¶
func (out *KafkaOutput) ChanInfo() string
func (*KafkaOutput) Close ¶
func (out *KafkaOutput) Close() error
func (*KafkaOutput) Start ¶
func (out *KafkaOutput) Start() error
func (*KafkaOutput) Version ¶
func (out *KafkaOutput) Version() string
func (*KafkaOutput) WriteToTopic ¶
func (out *KafkaOutput) WriteToTopic() error
Click to show internal directories.
Click to hide internal directories.