Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidationWriter ¶
NewValidationWriter compiles the JSONSchema a producers a Writer which validates the provided JSON documents against the schema. It discards the data after validation.
func SetOptions ¶
SetOptions configures zerolog global settings based on user-configured options.
func Unconfigure ¶ added in v0.3.0
func Unconfigure()
Unconfigure restores zerolog to its default settings.
Types ¶
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
HTTPHandler is a custom request logger middleware.
func NewHTTPHandler ¶
func NewHTTPHandler(handler http.Handler) *HTTPHandler
NewHTTPHandler creates a new Handler middleware.
func (*HTTPHandler) ServeHTTP ¶
func (c *HTTPHandler) ServeHTTP( writer http.ResponseWriter, req *http.Request, )
Click to show internal directories.
Click to hide internal directories.