kelemetrixconsumer

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 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 Consumer

type Consumer struct {
	Mq       mq.Queue
	Metrics  metrics.Client
	Registry *kelemetrix.Registry
	Config   config.Provider
	// contains filtered or unexported fields
}

func (*Consumer) Close

func (consumer *Consumer) Close(ctx context.Context) error

func (*Consumer) HandleMessage

func (consumer *Consumer) HandleMessage(logger logrus.FieldLogger, message *audit.Message)

func (*Consumer) Init

func (consumer *Consumer) Init() error

func (*Consumer) Options

func (consumer *Consumer) Options() manager.Options

func (*Consumer) PrepareTagsQuantifiers

func (consumer *Consumer) PrepareTagsQuantifiers() error

func (*Consumer) Start

func (consumer *Consumer) Start(ctx context.Context) error

type Options

type Options struct {
	Enable        bool
	ConsumerGroup string
	Partitions    []int32
	LogTags       bool
	LogQuantities bool
}

func (*Options) EnableFlag

func (options *Options) EnableFlag() *bool

func (*Options) Setup

func (options *Options) Setup(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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