dependency

package
v1.0.51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL