Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestIDFromContext ¶
RequestIDFromContext get requestID from context
Types ¶
type RequestIDMW ¶
type RequestIDMW struct { }
RequestIDMW is a request_id middleware struct TODO: move to napnap
func NewRequestIDMW ¶
func NewRequestIDMW() *RequestIDMW
NewRequestIDMW returns NewRequestID middlware instance
func (*RequestIDMW) Invoke ¶
func (m *RequestIDMW) Invoke(c *web.Context, next web.HandlerFunc)
Invoke function is a middleware entry
Click to show internal directories.
Click to hide internal directories.