Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogIpKey = "ip" LogHttpMethodKey = "method" LogRequestPathKey = "path" LogRequestUrlKey = "url" LogRequestQuery = "query" LogRequestHeader = "header" LogRequestBody = "body" LogHttpStatusKey = "status" LogRequestIdKey = "requestId" LogRequestContentType = "content-type" LogResponseContentType = "response-type" LogHttpContentLength = "content-length" LogHttpResponseLength = "response-length" LogRequestCostKey = "cost" LogRecoverRequestKey = "request" LogRecoverStackKey = "stack" LogRecoverErrorKey = "error" )
View Source
const ( DateTimeFormat = "2006-01-02 15:04:05.999 -07:00" DateFormat = "2006-01-02" TimeFormat = "15:04:05.999" )
View Source
const ( QueryOk = "op.query.ok" QueryFail = "op.query.fail" CreateOk = "op.create.ok" CreateFail = "op.create.fail" UpdateOk = "op.update.ok" UpdateFail = "op.update.fail" DeleteOk = "op.delete.ok" DeleteFail = "op.delete.fail" )
Variables ¶
View Source
var (
NopObj = NopType{}
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.