Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTraceID ¶
GetTraceID returns the trace id from the context.
Types ¶
type App ¶
func (*App) HandleFunc ¶
func (a *App) HandleFunc(pattern string, handler Handler, mw ...MidHandler)
This is an override of the promoted API method from the embedded ServeMux.
func (*App) HandleFuncNoMiddleware ¶
func (a *App) HandleFuncNoMiddleware(pattern string, handler Handler, mw ...MidHandler)
type MidHandler ¶
MidHandler is a type that represents a middleware handler, which is a function that takes a handler and returns a handler. This is a common pattern in Go for creating middleware chains & run code before and after another handler.
Click to show internal directories.
Click to hide internal directories.