Documentation
¶
Overview ¶
Package conn handles the initialization and distribution of the database connection object. You probably want to run conn.Get()
Index ¶
Constants ¶
View Source
const DBKey string = "db-object"
DBKey is the key used to store the database object in the request context.
Variables ¶
This section is empty.
Functions ¶
func DBMiddleware ¶
Middleware stores the database connection object in the gin context. This can be retrieved as necessary by routes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.