global

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExpiresTime = time.Hour * 24
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeServerClaim

type ComputeServerClaim struct {
	UserID string
	jwt.RegisteredClaims
}

func FromContext

func FromContext(ctx context.Context) (*ComputeServerClaim, bool)

FromContext 从上下文获取用户信息

func (*ComputeServerClaim) GetUserId added in v0.0.3

func (c *ComputeServerClaim) GetUserId() uuid.UUID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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