grpc_interceptor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatsD

func StatsD(statsdReporter StatsDClient) grpc.UnaryServerInterceptor

func UserHeaderCtx

func UserHeaderCtx(IdentityHeaderKeyUUID, IdentityHeaderKeyEmail string) grpc.UnaryServerInterceptor

UserHeaderCtx middleware will propagate a valid user ID as string within request context use `user.FromContext` function to get the user ID string

Types

type StatsDClient added in v0.2.3

type StatsDClient interface {
	Histogram(name string, value float64) *statsd.Metric
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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