Documentation
¶
Overview ¶
Package constant 定义微服务通用 header/metadata key。
Index ¶
Constants ¶
View Source
const ( // DefaultNamespace 默认命名空间 DefaultNamespace = "firefly" // DefaultNetworkSN 默认网卡命名 DefaultNetworkSN = "firefly-main-network" // DefaultExternalNetworkAddress 默认外网地址 DefaultExternalNetworkAddress = "127.0.0.1" // DefaultMaxRetry 默认重试次数 DefaultMaxRetry = 3 // DefaultTTL 默认心跳间隔 DefaultTTL = 10 // DefaultVersion 默认版本号 DefaultVersion = "v0.0.1" )
View Source
const ( XRealIp = "x-real-ip" Authorization = "authorization" AuthorizationType = "authorization-type" AppLanguage = "ff-app-language" AppVersion = "ff-app-version" TraceId = "ff-trace-id" Session = "ff-session" UserId = "ff-user-id" AppId = "ff-app-id" TenantId = "ff-tenant-id" ClientIp = "ff-client-ip" RoleIds = "ff-role-ids" OrgIds = "ff-org-ids" SystemName = "ff-system-name" ClientName = "ff-client-name" SystemType = "ff-system-type" ClientType = "ff-client-type" DeviceFormFactor = "ff-device-form-factor" SystemVersion = "ff-system-version" ClientVersion = "ff-client-version" GrpcGatewayAuth = "ff-grpc-gateway-auth" HttpGatewayAuth = "ff-http-gateway-auth" )
View Source
const (
// KernelLanguage 内核开发语言
KernelLanguage = "Golang"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.