Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextMiddleware ¶
func ContextMiddleware(handler Handler, context *ledgerContext.AppContext) http.HandlerFunc
ContextMiddleware is a middleware that provides application context to the `Handler`
func TokenAuthMiddleware ¶
func TokenAuthMiddleware(handler http.HandlerFunc) http.HandlerFunc
TokenAuthMiddleware is a middleware that provides authentication functionality
Types ¶
type Handler ¶
type Handler func(http.ResponseWriter, *http.Request, *ledgerContext.AppContext)
Handler is a custom HTTP handler that has an additional application context
Click to show internal directories.
Click to hide internal directories.