middleware

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(db db, options ...OptionDbMiddleware) *dbMiddleware

NewDB returns a new DB middleware which also implements the HealthCheck interface and can be configured accordinginly

Types

type OptionDbMiddleware

type OptionDbMiddleware func(*dbMiddleware)

func OptionHealthCheckName

func OptionHealthCheckName(t string) OptionDbMiddleware

func OptionWindowCheck

func OptionWindowCheck(t time.Duration) OptionDbMiddleware

Jump to

Keyboard shortcuts

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