util

package
v0.0.0-...-457f07e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnKey   = "conn"
	NKeyKey   = "nkey"
	ClaimsKey = "claims"
)

Variables

This section is empty.

Functions

func GetClaims

func GetClaims(ctx context.Context) *jwt.UserClaims

func GetConn

func GetConn(ctx context.Context) *nats.Conn

func GetNKey

func GetNKey(ctx context.Context) string

func SetClaims

func SetClaims(ctx context.Context, claims *jwt.UserClaims) context.Context

func SetConn

func SetConn(ctx context.Context, conn *nats.Conn) context.Context

func SetNKey

func SetNKey(ctx context.Context, nkey string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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