kafka

package
v0.0.0-...-aa6a373 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaDataType

type KafkaDataType uint16
const (
	KafkaListType KafkaDataType = iota
	KafkaChannelType
)

type KafkaOutput

type KafkaOutput struct {
	ReconnectInterval time.Duration
	BrokerList        []string
	Topic             string
	Timeout           time.Duration
	FlushInterval     time.Duration
	Producer          sarama.AsyncProducer
	// contains filtered or unexported fields
}

func (*KafkaOutput) Close

func (out *KafkaOutput) Close()

func (*KafkaOutput) Connect

func (out *KafkaOutput) Connect() error

func (*KafkaOutput) GetNameByIP

func (out *KafkaOutput) GetNameByIP(ip string) string

func (*KafkaOutput) Init

func (out *KafkaOutput) Init(config outputs.MothershipConfig, topology_expire int) error

func (*KafkaOutput) PublishEvent

func (out *KafkaOutput) PublishEvent(ts time.Time, event common.MapStr) error

func (*KafkaOutput) PublishIPs

func (out *KafkaOutput) PublishIPs(name string, localAddrs []string) error

func (*KafkaOutput) Reconnect

func (out *KafkaOutput) Reconnect()

func (*KafkaOutput) SendMessagesGoroutine

func (out *KafkaOutput) SendMessagesGoroutine()

type KafkaQueueMsg

type KafkaQueueMsg struct {
	// contains filtered or unexported fields
}

func (*KafkaQueueMsg) Encode

func (qmsg *KafkaQueueMsg) Encode() ([]byte, error)

func (*KafkaQueueMsg) Length

func (qmsg *KafkaQueueMsg) Length() int

Jump to

Keyboard shortcuts

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