Documentation ¶
Overview ¶
Package middleware provides server utitilies for RTrade gRPC services
Index ¶
Constants ¶
View Source
const AuthorizationKey = "authorization"
AuthorizationKey is the key used to store authorization token data
Variables ¶
This section is empty.
Functions ¶
func NewServerInterceptors ¶
func NewServerInterceptors(key string) ( unaryInterceptor grpc.UnaryServerInterceptor, streamInterceptor grpc.StreamServerInterceptor, )
NewServerInterceptors creates unary and stream interceptors that validate requests, for use with gRPC servers, using given key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.