wrapper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendClaims

func AppendClaims(ctx context.Context, claims jwt.Claims) context.Context

func GetClaims

func GetClaims(ctx context.Context) (jwt.Claims, bool)

Types

type ClaimsServerStream

type ClaimsServerStream struct {
	grpc.ServerStream
	Ctx context.Context
}

func NewClaimsServerStream

func NewClaimsServerStream(stream grpc.ServerStream) *ClaimsServerStream

func (*ClaimsServerStream) Claims

func (c *ClaimsServerStream) Claims() (jwt.Claims, bool)

func (*ClaimsServerStream) Context

func (c *ClaimsServerStream) Context() context.Context

type ContextKey

type ContextKey string

ContextKey defines a key type for a context value.

type Skipper

type Skipper interface {
	// Skip determines if the method will get skipped. generally `method` = `info.FullMethod`
	Skip(method string) (skip bool)
}

Skipper defines an interface which will be used to skip interceptor features for certain methods.

func NewSkipper

func NewSkipper(
	methods ...string,
) Skipper

Jump to

Keyboard shortcuts

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