Documentation ¶
Index ¶
- Constants
- func AccessTokenFromContext(ctx context.Context) (string, string, error)
- func AccessTokenFromMD(md metadata.MD) (string, string, error)
- func HashToken(token string) string
- func NamespaceFromContext(ctx context.Context) (string, error)
- func NamespaceFromMD(md metadata.MD) (string, error)
- func StreamClientInterceptor(accessToken string) grpc.StreamClientInterceptor
- func StreamServerInterceptor(pgxPool *pgxpool.Pool) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(accessToken string) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(pgxPool *pgxpool.Pool) grpc.UnaryServerInterceptor
Constants ¶
View Source
const ( MDKeyAuth = "authorization" MDKeyNamespace = "namespace" )
Variables ¶
This section is empty.
Functions ¶
func AccessTokenFromContext ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(accessToken string) grpc.StreamClientInterceptor
func StreamServerInterceptor ¶
func StreamServerInterceptor(pgxPool *pgxpool.Pool) grpc.StreamServerInterceptor
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(accessToken string) grpc.UnaryClientInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(pgxPool *pgxpool.Pool) grpc.UnaryServerInterceptor
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.