Documentation ¶
Index ¶
- Constants
- func Close()
- func GetConnection(ctx context.Context) *sql.DB
- func Middleware(selector SelectorFunc) func(http.Handler) http.Handler
- func Migrate(dbUrl string) error
- func Setup(dbUrls []NamedUrl) error
- func WithConnection(ctx context.Context, dbName string) (context.Context, error)
- type NamedUrl
- type SelectorFunc
Constants ¶
View Source
const ParamPoolSize = paramPrefix + "poolSize"
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(selector SelectorFunc) func(http.Handler) http.Handler
Types ¶
type NamedUrl ¶
func (NamedUrl) StrippedUrl ¶
StrippedUrl returns a copy of the URL with all query parameters starting with "_x-" removed.
type SelectorFunc ¶
Click to show internal directories.
Click to hide internal directories.