metrics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrpcClientStreamInterceptor

func GrpcClientStreamInterceptor(pipeline, pluginName string) grpc.StreamClientInterceptor

func GrpcClientUnaryInterceptor

func GrpcClientUnaryInterceptor(pipeline, pluginName string) grpc.UnaryClientInterceptor

func GrpcServerStreamInterceptor

func GrpcServerStreamInterceptor(pipeline, pluginName string) grpc.StreamServerInterceptor

func GrpcServerUnaryInterceptor

func GrpcServerUnaryInterceptor(pipeline, pluginName string) grpc.UnaryServerInterceptor

func HttpServerMiddleware

func HttpServerMiddleware(pipeline string, pluginName string, next http.Handler) http.Handler

func RegisterKafkaReader

func RegisterKafkaReader(pipeline, pluginName, topic, groupId, clientId string, statFunc func() ReaderStats)

func RegisterKafkaWriter

func RegisterKafkaWriter(pipeline, pluginName, topic, clientId string, statFunc func() kafka.WriterStats)

func UnregisterKafkaReader

func UnregisterKafkaReader(pipeline, pluginName, topic, groupId, clientId string)

func UnregisterKafkaWriter

func UnregisterKafkaWriter(pipeline, pluginName, topic, clientId string)

Types

type ReaderStats

type ReaderStats struct {
	kafka.ReaderStats
	CommitQueueLenght   int
	CommitQueueCapacity int
}

Jump to

Keyboard shortcuts

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