middleware

package
v0.0.0-...-a757527 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transaction

func Transaction(db *sqlx.DB, renderer common.Renderer, logger zerolog.Logger) func(next http.Handler) http.Handler

Transaction is a middleware that wraps a handler in a transaction and commits the transaction if the status code to return is in the 2xx-3xx range

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL