commons

package
v0.0.0-...-490d541 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestKey = "guide_car"

Functions

func GetOperatorStr

func GetOperatorStr(ctx context.Context) string

func WithIdentityInfo

func WithIdentityInfo(ctx context.Context, info *IdentityInfo) context.Context

Types

type IdentityInfo

type IdentityInfo struct {
	UserId    int64
	OrgId     int64
	RoleNames string
}

func IdentityInfoValue

func IdentityInfoValue(ctx context.Context) (token *IdentityInfo, ok bool)

Jump to

Keyboard shortcuts

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