kafkamdm

package
v0.0.0-...-15fa731 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: AGPL-3.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, stats met.Backend, partitionScheme string) (*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) GetPartitionKey

func (p *LastNumPartitioner) GetPartitionKey(m schema.PartitionedMetric, b []byte) ([]byte, error)

key is by metric name, but won't be used for partition setting

func (*LastNumPartitioner) Partition

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

Jump to

Keyboard shortcuts

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