transaction

package
v0.0.0-...-8b35975 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransactionHandler

func TransactionHandler(db *sqlx.DB) gin.HandlerFunc

TransactionHandler is middleware that wraps current request within main DB transaction

func WithRequestTimeout

func WithRequestTimeout() gin.HandlerFunc

WithRequestTimeout returns a middleware that timeout current request if exceed threshold

Types

This section is empty.

Jump to

Keyboard shortcuts

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