package
0.0.0-20210513100157-2a740e3c52a0
Repository: https://github.com/iot-for-tillgenglighet/api-snowdepth.git
Documentation: pkg.go.dev

# Functions

GetFromContext extracts the database wrapper, if any, from the provided context.
Middleware packs a pointer to the datastore into context.
NewDatabaseConnection initializes a new connection to the database and wraps it in a Datastore.

# Interfaces

Datastore is an interface that is used to inject the database into different handlers to improve testability.