Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HttpPathKey = log.Path{Parent: &HttpRequestContextKey, Identifier: "path"} HttpFullPathKey = log.Path{Parent: &HttpRequestContextKey, Identifier: "full_path"} HttpMethodKey = log.Path{Parent: &HttpRequestContextKey, Identifier: "method"} HttpCorrelationIdKey = log.Path{Parent: &HttpRequestContextKey, Identifier: "correlation_id", IsMetricTag: true} )
View Source
var ( LogHTTPScope = log.Path{Identifier: "http"} LogRouteScope = log.Path{Parent: &LogHTTPScope, Identifier: "route"} LogResponseScope = log.Path{Parent: &LogHTTPScope, Identifier: "response"} )
View Source
var ( LogHttpMethodField = log.Path{Parent: &LogRouteScope, Identifier: "method"} LogHttpPathField = log.Path{Parent: &LogRouteScope, Identifier: "path"} LogHttpHandlerCountField = log.Path{Parent: &LogRouteScope, Identifier: "handler_count"} LogHttpHandlerNameField = log.Path{Parent: &LogRouteScope, Identifier: "handler"} LogHttpResponseStatusCodeField = log.Path{Parent: &LogResponseScope, Identifier: "status"} LogHttpResponseTimeField = log.Path{Parent: &LogResponseScope, Identifier: "ms"} )
View Source
var HttpContextKey = log.Path{Identifier: "http"}
View Source
var HttpRequestContextKey = log.Path{Parent: &HttpContextKey, Identifier: "request"}
View Source
var HttpResponseContextKey = log.Path{Parent: &HttpContextKey, Identifier: "response"}
Functions ¶
This section is empty.
Types ¶
type BadRequestError ¶
type BadRequestError struct {
Msg string
}
func (*BadRequestError) Error ¶
func (e *BadRequestError) Error() string
func (*BadRequestError) RestCode ¶
func (e *BadRequestError) RestCode() int
type HttpServerConfig ¶
type InternalErrorCode ¶
type InternalErrorCode interface {
InternalErrorCode() string
}
type InternalServerError ¶
type InternalServerError struct {
}
func (*InternalServerError) Error ¶
func (e *InternalServerError) Error() string
func (*InternalServerError) RestCode ¶
func (e *InternalServerError) RestCode() int
type PageNotFoundError ¶
func (*PageNotFoundError) Error ¶
func (e *PageNotFoundError) Error() string
func (*PageNotFoundError) RestCode ¶
func (e *PageNotFoundError) RestCode() int
type ResponseError ¶
type RestErrorCode ¶
type RestErrorCode interface {
RestCode() int
}
Click to show internal directories.
Click to hide internal directories.