kafkamdm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: AGPL-3.0, Apache-2.0 Imports: 12 Imported by: 8

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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