web/context.go

18 lines
292 B
Go

package main
import (
"github.com/jmoiron/sqlx"
"github.com/labstack/echo"
"github.com/revel/log15"
)
// Context is the custom context for this web server
type Context struct {
echo.Context
// DB is the database connection
DB *sqlx.DB
// Log is the core logger
Log log15.Logger
}