Documentation ¶
Overview ¶
Copyright (c) 2020 rookie-ninja
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2020 rookie-ninja ¶
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2020 rookie-ninja ¶
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2020 rookie-ninja ¶
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
View Source
const ( RequestIdKeyLowerCase = "requestid" RequestIdKeyDash = "request-id" RequestIdKeyUnderline = "request_id" RequestIdKeyDefault = RequestIdKeyDash RKEventKey = "rk-event" RKLoggerKey = "rk-logger" )
Variables ¶
This section is empty.
Functions ¶
func RkGinLog ¶
func RkGinLog(opts ...Option) gin.HandlerFunc
RkGinZap returns a gin.HandlerFunc (middleware) that logs requests using uber-go/zap.
Types ¶
type Option ¶
type Option func(*options)
func WithEnableLogging ¶
func WithEnableMetrics ¶
func WithEventFactory ¶
func WithEventFactory(factory *rk_query.EventFactory) Option
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.