interceptors

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidator

func GetValidator() *validator.Validate

GetValidator returns the underlying validator engine which powers the StructValidator implementation.

func GoogleSREBreaker

func GoogleSREBreaker(breakers *breaker.BreakerGroup) grpc.UnaryClientInterceptor

GoogleSREBreaker breaker based on google sre. It rejects request adaptively based on server response

func LoggerForUnaryClient

func LoggerForUnaryClient(config *config.ClientConfig) grpc.UnaryClientInterceptor

LoggerForUnaryClient log unary client request details

func LoggerForUnaryServer

func LoggerForUnaryServer(config *config.ServerConfig) grpc.UnaryServerInterceptor

LoggerForUnaryServer log unary server response details

func Metric

Metric metric handler, currently only metric at server side

func RecoveryForUnaryClient

func RecoveryForUnaryClient(config *config.ClientConfig) grpc.UnaryClientInterceptor

RecoveryForUnaryClient recover unary client once it panics

func RecoveryForUnaryServer

func RecoveryForUnaryServer(config *config.ServerConfig) grpc.UnaryServerInterceptor

RecoveryForUnaryServer recover unary server once it panics

func SentinelForUnaryClient

func SentinelForUnaryClient() grpc.UnaryClientInterceptor

SentinelForUnaryClient is client side sentinel

func SentinelForUnaryServer

func SentinelForUnaryServer() grpc.UnaryServerInterceptor

SentinelForUnaryServer is server side sentinel

func TraceForUnaryClient

func TraceForUnaryClient() grpc.UnaryClientInterceptor

TraceForUnaryClient trace unary client side details

func TraceForUnaryServer

func TraceForUnaryServer() grpc.UnaryServerInterceptor

TraceForUnaryServer trace unary server side details

func ValidateForUnaryServer

func ValidateForUnaryServer() grpc.UnaryServerInterceptor

ValidateForUnaryServer validate input request params

Types

This section is empty.

Jump to

Keyboard shortcuts

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