Documentation ¶
Index ¶
- Variables
- func ExtractToken(ctx context.Context) (string, error)
- func Key(ctx context.Context) meta.Valuer
- func NewPerRPCCredentials(generator token.Generator) credentials.PerRPCCredentials
- func RegisterKeys()
- func StreamServerInterceptor(verifier token.Verifier) grpc.StreamServerInterceptor
- func UnaryServerInterceptor(verifier token.Verifier) grpc.UnaryServerInterceptor
- func VerifyToken(ctx context.Context, verifier token.Verifier) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Invoke(RegisterKeys), )
Module for fx.
Functions ¶
func ExtractToken ¶
ExtractToken from context.
func NewPerRPCCredentials ¶
func NewPerRPCCredentials(generator token.Generator) credentials.PerRPCCredentials
NewPerRPCCredentials for token.
func StreamServerInterceptor ¶
func StreamServerInterceptor(verifier token.Verifier) grpc.StreamServerInterceptor
StreamServerInterceptor for token.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(verifier token.Verifier) grpc.UnaryServerInterceptor
UnaryServerInterceptor for token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.