internal

package
v0.0.0-...-8aeb8a1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricReporter

type MetricReporter interface {
	SetMetrics(subsystem, identifier string, size int, bufferSize int)
	EnqueuedEvent(subsystem, identifier string)
	DequeuedEvent(subsystem, identifier string)
}

type ServerMetricReporter

type ServerMetricReporter struct{}

ServerMetricReporter is used for inmemory queues (queue per server)

func (*ServerMetricReporter) DequeuedEvent

func (smr *ServerMetricReporter) DequeuedEvent(subsystem, identifier string)

func (*ServerMetricReporter) EnqueuedEvent

func (smr *ServerMetricReporter) EnqueuedEvent(subsystem, identifier string)

func (*ServerMetricReporter) SetMetrics

func (smr *ServerMetricReporter) SetMetrics(subsystem, identifier string, size int, bufferSize int)

type SharedQueueMetricReporter

type SharedQueueMetricReporter struct{}

SharedQueueMetricReporter is used for shared queues e.g. Redis (1 queue for all servers)

func (*SharedQueueMetricReporter) DequeuedEvent

func (sqmr *SharedQueueMetricReporter) DequeuedEvent(subsystem, identifier string)

func (*SharedQueueMetricReporter) EnqueuedEvent

func (sqmr *SharedQueueMetricReporter) EnqueuedEvent(subsystem, identifier string)

func (*SharedQueueMetricReporter) SetMetrics

func (sqmr *SharedQueueMetricReporter) SetMetrics(subsystem, identifier string, size int, bufferSize int)

Jump to

Keyboard shortcuts

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