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
Click to show internal directories.
Click to hide internal directories.