middleware

package
v0.0.0-...-ed02202 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Database

func Database(db *gorm.DB, err error) echo.MiddlewareFunc

Database returns an Echo server middleware that share just one database connection through an `echo.Context`.

func GetDatabaseRef

func GetDatabaseRef(c echo.Context) *gorm.DB

GetDatabaseRef returns the database reference (*gorm.DB) based on an Echo context

Types

This section is empty.

Jump to

Keyboard shortcuts

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