requestmeta

package
v1.0.69 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package requestmeta owns DWS request metadata header names.

Index

Constants

View Source
const (
	DelegatorUserIDHeader         = "delegator-user-id"
	DelegatorCorpIDHeader         = "delegator-corp-id"
	DelegatorOpenDingtalkIDHeader = "delegator-open-dingtalk-id"
	DelegatorUIDHeader            = "delegator-uid"
)

委托输入由宿主提供;统一 UID 只能由网关解析后注入业务请求。

View Source
const DingTalkExtHeader = "x-dingtalk-ext"

Variables

This section is empty.

Functions

func IsDelegatorHeader added in v1.0.65

func IsDelegatorHeader(name string) bool

IsDelegatorHeader 同时保留输入和网关输出字段,防止其他 Header 来源冒充身份。

func RemoveDelegatorHeaders added in v1.0.65

func RemoveDelegatorHeaders(headers map[string]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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