Back to

Package middleware

Latest Go to latest

The latest major version is .

Published: Jul 19, 2019 | License: MIT | Module:


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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier