kafka_output

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 10 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"`
}

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(b []byte, meta outputs.Meta)

Write //

Jump to

Keyboard shortcuts

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