Documentation ¶
Index ¶
Constants ¶
View Source
const ContextKeyRequestId app_ctx.ContextKey = "request_id"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingMiddleware ¶
func NewLoggingMiddleware ¶
func NewLoggingMiddleware(handler http.Handler) *LoggingMiddleware
func (*LoggingMiddleware) ServeHTTP ¶
func (m *LoggingMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RequestIDMiddleware ¶
func NewRequestIDMiddleware ¶
func NewRequestIDMiddleware(handler http.Handler, request_id_inc *int) *RequestIDMiddleware
func (*RequestIDMiddleware) ServeHTTP ¶
func (m *RequestIDMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Directories ¶
Path | Synopsis |
---|---|
templ: version: v0.2.778
|
templ: version: v0.2.778 |
templ: version: v0.2.778
|
templ: version: v0.2.778 |
templ: version: v0.2.778
|
templ: version: v0.2.778 |
templ: version: v0.2.778
|
templ: version: v0.2.778 |
templ: version: v0.2.778
|
templ: version: v0.2.778 |
templ: version: v0.2.778
|
templ: version: v0.2.778 |
templ: version: v0.2.778
|
templ: version: v0.2.778 |
Click to show internal directories.
Click to hide internal directories.