meta

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	KeyAppKey  = "hd-app-key"  // 应用ID
	KeySource  = "hd-source"   // 请求来源, 可以表示客户端,外部域,第三方API
	KeyRelease = "hd-release"  // 版本号
	KeyTid     = "hd-tid"      // tenant id
	KeyUid     = "hd-uid"      // user id
	KeyUsn     = "hd-usn"      // user sn
	KeyRoleIds = "hd-role-ids" // role ids
	KeyCaller  = "dapr-caller-app-id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaData added in v0.1.7

type MetaData interface {
	Set(key string, val any)
	Get(key string) (any, bool)
	AsGRPCMetaData() map[string][]string
	GetInt64(key string) int64
	GetString(key string) string
	GetInt64Slice(key string) []int64
}

func New added in v0.1.7

func New(kvs ...string) MetaData

Jump to

Keyboard shortcuts

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