Help us shape the future of Go! Take the 2026 Go Developer Survey

requestmeta

package
v1.0.65 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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