Documentation ¶ Index ¶ func SetupPGX(config *pgx.ConnConfig) type Backend func NewBackend(clientConn net.Conn) Backend type Frontend func NewFrontend(serverConn net.Conn) Frontend type Proxy func NewProxy() Proxy func (p *Proxy) DialFunc(ctx context.Context, network, addr string) (net.Conn, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SetupPGX ¶ func SetupPGX(config *pgx.ConnConfig) Types ¶ type Backend ¶ type Backend struct { *pgproto3.Backend // contains filtered or unexported fields } func NewBackend ¶ func NewBackend(clientConn net.Conn) Backend type Frontend ¶ type Frontend struct { *pgproto3.Frontend // contains filtered or unexported fields } func NewFrontend ¶ func NewFrontend(serverConn net.Conn) Frontend type Proxy ¶ type Proxy struct { // contains filtered or unexported fields } func NewProxy ¶ func NewProxy() Proxy func (*Proxy) DialFunc ¶ func (p *Proxy) DialFunc(ctx context.Context, network, addr string) (net.Conn, error) Source Files ¶ View all Source files postgres.go Click to show internal directories. Click to hide internal directories.