Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSNConstructor ¶
DSNConstructor is a function that constructs a new connection string from parameters of the incoming connection.
parameters are pg connection parameters as described in https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
type PgProxy ¶
type PgProxy struct {
// contains filtered or unexported fields
}
PgProxy is a configurable proxy for PostgreSQL connections
func New ¶
func New(address string, connectionFn DSNConstructor) *PgProxy
New creates a new PgProxy.
address is the address to listen on for incoming connections. connectionFn is a function that constructs a new connection string from parameters of the incoming connection.
Click to show internal directories.
Click to hide internal directories.