Documentation ¶
Index ¶
Constants ¶
View Source
const ( RunEnv = "RUN_ENV" EnvLocal = "local" EnvDev = "dev" EnvTest = "test" EnvPre = "pre" EnvStress = "stress" EnvGray = "gray" EnvProd = "prod" )
View Source
const ( ProjectNameKey = "projectName" AppNameKey = "appName" EnvKey = "env" LocalIpKey = "localIp" OutBoundIpKey = "outBoundIp" )
biz meta key
View Source
const ( SessionId = "Session-Id" RequestSessionId = "Request-Session-Id" LastRequestSessionId = "Last-Request-Session-Id" XRequestId = "X-Request-ID" CurrentUserId = "Current-User-Id" XB3ZipKinOpenTraceId = "x-b3-traceid" // open tracing id for B3 ZipKin https://github.com/openzipkin/b3-propagation XOpenApiAccessToken = "x-access-token" )
http header key
View Source
const ( MqTraceIdKey = "mq_trace_id" MqSpanIdKey = "mq_sapn_id" MqTraceFlagsKey = "mq_trace_flags" MqTraceSpanKey = "mq_trace_span" )
mq property key
View Source
const ( LogTypeKey = "LOGTYPE" LogTypeServer = "server" // biz server logic log LogTypeAccess = "access" // access log LogTypeMqConsumer = "consumer" // mq consumer LogTypeModule = "module" // dependent resource module (db,cache) LogTypeHttpReq = "httpreq" // dependent http resource access lay request/response LogTypeRpc = "rpc" // dependent rpc resource access lay LogTypeJob = "job" // cron job )
log type
View Source
const ( ProtoKey = "PROTO" ProtoKeyHttp = "http" ProtoKeyGRPC = "grpc" ProtoKeyThriftRPC = "thrift" ProtoKeyRedis = "redis" ProtoKeyMongo = "mongo" ProtoKeyPgSql = "pgsql" ProtoKeyMySql = "mysql" )
access resource proto
View Source
const ( CostKey = "cost" RequestStartTimeKey = "requestStartTime" RequestEndTimeKey = "requestEndTime" )
cost
View Source
const ( // UIGateWayServiceName ui/us gateway service for json dsl, graphql, json hal, sql92 etc UIGateWayServiceName = "gw" // StationServiceName station service StationServiceName = "station" // MisDaServiceName mis da service MisDaServiceName = "da" )
View Source
const ( IdlFileSuffixThrift = "thrift" IdlFileSuffixProtobuf = "pb" )
View Source
const (
IdlDirPathEnv = "IDL_DIR_PATH_ENV"
)
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.