token

package
v1.204.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func ExtractToken

func ExtractToken(ctx context.Context) (string, error)

ExtractToken from context.

func Key added in v1.204.0

func Key(ctx context.Context) meta.Valuer

Key for token.

func NewPerRPCCredentials

func NewPerRPCCredentials(generator token.Generator) credentials.PerRPCCredentials

NewPerRPCCredentials for token.

func RegisterKeys added in v1.204.0

func RegisterKeys()

RegisterKeys for limiter.

func StreamServerInterceptor

func StreamServerInterceptor(verifier token.Verifier) grpc.StreamServerInterceptor

StreamServerInterceptor for token.

func UnaryServerInterceptor

func UnaryServerInterceptor(verifier token.Verifier) grpc.UnaryServerInterceptor

UnaryServerInterceptor for token.

func VerifyToken

func VerifyToken(ctx context.Context, verifier token.Verifier) (context.Context, error)

VerifyToken from context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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