Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyMiddleware ¶
func ApplyMiddleware(server *http.Server, middleware map[string]middleware.Middleware, order []string, log *zap.Logger)
Types ¶
type StdLogAdapter ¶
type StdLogAdapter struct {
// contains filtered or unexported fields
}
StdLogAdapter can be passed to the http.Server or any place which required standard logger to redirect output to the logger plugin
func NewStdAdapter ¶
func NewStdAdapter(log *zap.Logger) *StdLogAdapter
NewStdAdapter constructs StdLogAdapter
Click to show internal directories.
Click to hide internal directories.