Documentation ¶
Index ¶
- Constants
- func UnaryClientInterceptorOfDebug() grpc.UnaryClientInterceptor
- func UnaryClientInterceptorOfMetadata() grpc.UnaryClientInterceptor
- func UnaryClientInterceptorOfSessionId() grpc.UnaryClientInterceptor
- func UnaryServerInterceptorOfContext() grpc.UnaryServerInterceptor
- func UnaryServerInterceptorOfDebug() grpc.UnaryServerInterceptor
- func UnaryServerInterceptorOfRecovery() grpc.UnaryServerInterceptor
- func UnaryServerInterceptorOfSessionId() grpc.UnaryServerInterceptor
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.
Click to show internal directories.
Click to hide internal directories.