Documentation
¶
Index ¶
Constants ¶
View Source
const ( LOCAL_ENVIRONMENT = "local" PRODUCTION_ENVIRONMENT = "production" )
Environment Types
View Source
const ( CtxCorrelationId = "Ctx-Correlation-Id" CtxZLogger = "Ctx-ZLogger-Component" )
Common Keys used in the context
View Source
const ( ErrInternalServerError = "internal_server_error" ErrRequestBodyInvalid = "request_body_invalid" )
View Source
const ( HeaderXCorrelationId = echo.HeaderXCorrelationID HeaderUserAgent = "User-Agent" )
Common Headers
View Source
const ( LogAppName = "app" LogEnvName = "env" LogGoVersion = "go-version" LogProcessId = "pid" LogGoArch = "go-arch" LogCorrelationId = "correlation-id" LogUserAgent = "user-agent" LogClientRealIp = "client-real-ip" LogRequestUri = "request-uri" LogRequestMethod = "request-method" LogResponseStatus = "response-status" LogLatency = "latency" )
View Source
const (
DEPLOY_ENV_KEY = "DEPLOY_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.