Back to godoc.org

Package middleware

v0.0.0-...-ed02202
Latest Go to latest

The latest major version is .

Published: Jul 19, 2019 | License: MIT | Module: github.com/joseluisq/go-echo-server-starter

Index

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