Documentation ¶ Index ¶ func ContextWithDatabase(ctx context.Context, label string, db godb.Database) context.Context func DBFromContext(ctx context.Context, label string) godb.Database func DatabaseDependencyHandler(label string, db godb.Database) func(http.Handler) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ContextWithDatabase ¶ func ContextWithDatabase(ctx context.Context, label string, db godb.Database) context.Context ConextWithDatabase returns a context containing the provided database. func DBFromContext ¶ func DBFromContext(ctx context.Context, label string) godb.Database func DatabaseDependencyHandler ¶ func DatabaseDependencyHandler(label string, db godb.Database) func(http.Handler) http.Handler DatabaseDependencyHandler is a middleware to inject a database into context. Types ¶ This section is empty. Source Files ¶ View all Source files database.go depengency.go Click to show internal directories. Click to hide internal directories.