interceptors

package
v0.0.0-...-ce5093a Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxClientKey    = "client_ip"  // context keys
	CtxSessionIdKey = "session_id" // context keys
)

Variables

This section is empty.

Functions

func UnaryClientInterceptorOfDebug

func UnaryClientInterceptorOfDebug() grpc.UnaryClientInterceptor

UnaryClientInterceptorOfDebug print request, response

func UnaryClientInterceptorOfMetadata

func UnaryClientInterceptorOfMetadata() grpc.UnaryClientInterceptor

UnaryClientInterceptorOfMetadata inject session_id to metadata

func UnaryClientInterceptorOfSessionId

func UnaryClientInterceptorOfSessionId() grpc.UnaryClientInterceptor

UnaryClientInterceptorOfSessionId inject session_id to request

func UnaryServerInterceptorOfContext

func UnaryServerInterceptorOfContext() grpc.UnaryServerInterceptor

UnaryServerInterceptorOfContext inject session_id, client_ip to context

func UnaryServerInterceptorOfDebug

func UnaryServerInterceptorOfDebug() grpc.UnaryServerInterceptor

UnaryServerInterceptorOfDebug print request, response

func UnaryServerInterceptorOfRecovery

func UnaryServerInterceptorOfRecovery() grpc.UnaryServerInterceptor

UnaryServerInterceptorOfRecovery recovery

func UnaryServerInterceptorOfSessionId

func UnaryServerInterceptorOfSessionId() grpc.UnaryServerInterceptor

UnaryServerInterceptorOfSessionId inject session_id to response

Types

This section is empty.

Jump to

Keyboard shortcuts

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