kafkamdm

package
Version: v0.0.0-...-53bceb3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaMdm

type KafkaMdm struct {
	out.OutStats
	// contains filtered or unexported fields
}

func New

func New(topic string, brokers []string, codec string, timeout time.Duration, stats met.Backend, partitionScheme string, v2 bool) (*KafkaMdm, error)

func (*KafkaMdm) Close

func (k *KafkaMdm) Close() error

func (*KafkaMdm) Flush

func (k *KafkaMdm) Flush(metrics []*schema.MetricData) error

type LastNumPartitioner

type LastNumPartitioner struct{}

map the last number in the metricname to the partition needless to say, caller beware of how many/which partitions there are

func (*LastNumPartitioner) Partition

func (p *LastNumPartitioner) Partition(m schema.PartitionedMetric, numPartitions int32) (int32, error)

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL