consts

package
v0.0.0-...-9fd2f02 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// SAdminAuth 平台超管,处理跨租户业务
	SAdminAuth = "SADMIN"
	// AdminAuth 租户管理员,处理单一租户业务,必须在租户Token中使用
	AdminAuth = "ADMIN"
)
View Source
const (
	TraceIDHeaderKey     = "Trace-Id"
	TraceSpanIDHeaderKey = "Trace-Span-Id"
	TokenHeaderKey       = "C-Token"
	TenantIDHeaderKey    = "Tenant-Id"
)
View Source
const (
	CtxLogsVar     = "logsVar"
	CtxTraceIDVar  = "traceIDVar"
	CtxSpanCtxVar  = "spanCtxVar"
	CtxJwtVar      = "jwtVar"
	CtxTenantIDVar = "tenantIDVar"
	CtxGormDBVar   = "gormDBVar"
)
View Source
const (
	LocalConfigPathPre = "./configs/"
)
View Source
const (
	TenantIDField = "TenantID"
)
View Source
const (
	TenantIDParamKey = "TenantId"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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