middleware

package
v0.5.40 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(c *gin.Context, name string) *ent.Client

func Transaction

func Transaction(c *gin.Context, name string) *ent.Tx

func WithTransaction

func WithTransaction(
	name string,
	opts *sql.TxOptions,
	controls ...ginmiddleware.TransactionControl,
) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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