grpcutils

package
v0.0.0-...-f4854ed Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultInterceptor

func DefaultInterceptor(logger *zap.Logger) []grpc.ServerOption

func RegisterAndServeMetrics

func RegisterAndServeMetrics(httpPort uint16, s *grpc.Server, opts ...ServeMetricsOpt)

RegisterAndServeMetrics httpPort is the port that the metrics will be exposed on under the /_metrics route.

func ServeMetrics

func ServeMetrics(httpPort uint16, metricsPath string)

Types

type ServeMetricsOpt

type ServeMetricsOpt func(o serveMetricsOpts) *serveMetricsOpts

func WithPath

func WithPath(p string) ServeMetricsOpt

Jump to

Keyboard shortcuts

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