grpcext

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EnabledServerTraffic bool
	EnabledClientTraffic bool
	EnabledServerMetrics bool
	EnabledClientMetrics bool
}

type Interceptor

type Interceptor interface {
	ApplyUnaryServerInterceptor(grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor
	ApplyStreamServerInterceptor(grpc.StreamServerInterceptor) grpc.StreamServerInterceptor
	ApplyUnaryClientInterceptor(grpc.UnaryClientInterceptor) grpc.UnaryClientInterceptor
	ApplyStreamClientInterceptor(grpc.StreamClientInterceptor) grpc.StreamClientInterceptor
}

func NewInterceptor

func NewInterceptor(config Config) Interceptor

func NewInterceptorWithOpts

func NewInterceptorWithOpts(opts ...Option) Interceptor

type Option

type Option func(*Config)

func WithClientMetrics

func WithClientMetrics(enabled bool) Option

func WithClientTraffic

func WithClientTraffic(enabled bool) Option

func WithServerMetrics

func WithServerMetrics(enabled bool) Option

func WithServerTraffic

func WithServerTraffic(enabled bool) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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