kafka_output

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address  string `mapstructure:"address,omitempty"`
	Topic    string `mapstructure:"topic,omitempty"`
	Name     string `mapstructure:"name,omitempty"`
	MaxRetry int    `mapstructure:"max-retry,omitempty"`
	Timeout  int    `mapstructure:"timeout,omitempty"`
	Format   string `mapstructure:"format,omitempty"`
}

Config //

type KafkaOutput

type KafkaOutput struct {
	Cfg *Config
	// contains filtered or unexported fields
}

KafkaOutput //

func (*KafkaOutput) Close

func (k *KafkaOutput) Close() error

Close //

func (*KafkaOutput) Init

func (k *KafkaOutput) Init(cfg map[string]interface{}, logger *log.Logger) error

Init /

func (*KafkaOutput) Metrics

func (k *KafkaOutput) Metrics() []prometheus.Collector

Metrics //

func (*KafkaOutput) String

func (k *KafkaOutput) String() string

func (*KafkaOutput) Write

func (k *KafkaOutput) Write(rsp proto.Message, meta outputs.Meta)

Write //

Jump to

Keyboard shortcuts

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