Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HttpPathKey = namespace.Namespace{Parent: &HttpRequestContextKey, Identifier: "path"} HttpFullPathKey = namespace.Namespace{Parent: &HttpRequestContextKey, Identifier: "fullPath"} HttpMethodKey = namespace.Namespace{Parent: &HttpRequestContextKey, Identifier: "method"} HttpCorrelationIdKey = namespace.Namespace{Parent: &HttpRequestContextKey, Identifier: "correlationId", IsMetricTag: true} HttpRequestIdKey = namespace.Namespace{Parent: &HttpRequestContextKey, Identifier: "requestId", IsMetricTag: true} )
View Source
var ( LogHTTPScope = namespace.Namespace{Identifier: "http"} LogRouteScope = namespace.Namespace{Parent: &LogHTTPScope, Identifier: "route"} LogResponseScope = namespace.Namespace{Parent: &LogHTTPScope, Identifier: "response"} )
View Source
var ( LogHttpMethodField = namespace.Namespace{Parent: &LogRouteScope, Identifier: "method"} LogHttpPathField = namespace.Namespace{Parent: &LogRouteScope, Identifier: "path"} LogHttpHandlerCountField = namespace.Namespace{Parent: &LogRouteScope, Identifier: "handler_count"} LogHttpHandlerNameField = namespace.Namespace{Parent: &LogRouteScope, Identifier: "handler"} LogHttpResponseStatusCodeField = namespace.Namespace{Parent: &LogResponseScope, Identifier: "status"} LogHttpResponseTimeField = namespace.Namespace{Parent: &LogResponseScope, Identifier: "ms"} )
View Source
var HttpContextKey = namespace.Namespace{Identifier: "http"}
View Source
var HttpRequestContextKey = namespace.Namespace{Parent: &HttpContextKey, Identifier: "request"}
View Source
var HttpResponseContextKey = namespace.Namespace{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 {
AdditionalData interface{}
}
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.