viewer

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, v *Viewer) context.Context

Types

type Viewer

type Viewer struct {
	UserID    uuid.UUID
	TenantID  uuid.UUID
	AccountID uuid.UUID
	RoleName  string // 使用切片存储多个角色
}

func FromContext

func FromContext(ctx context.Context) *Viewer

Jump to

Keyboard shortcuts

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