irispgx

package module
v0.0.0-...-87373be Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 3 Imported by: 0

README

iris-pgx

Iris middleware for pgx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConnPoolConfig pgx.ConnPoolConfig
	AttachPool     bool
	AttachConn     bool
	PoolCtxKey     string
	ConnCtxKey     string
}

type Middleware

type Middleware struct {
	Config Config
	Pool   *pgx.ConnPool
}

func New

func New(cfg ...Config) *Middleware

func (*Middleware) Serve

func (m *Middleware) Serve(ctx iris.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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