Versions in this module Expand all Collapse all v0 v0.1.5 Sep 18, 2022 v0.1.4 Sep 18, 2022 Changes in this version + const MaxTcpPayload + var BackendAuthenticationError = errors.New("backend authentication failed") + var BackendInvalidMessage = errors.New("unexpected message received from backend") + var MissingRequiredTargetFields = errors.New("required target fields missing in target props") + func Start() + type AuthMapper = func(props map[string]string, password string, salt [4]byte) (map[string]string, error) + type ProxyBack struct + TargetHost string + TargetProps map[string]string + func NewProxyBackend(targetProps map[string]string, originProps map[string]string) (*ProxyBack, error) + func (b *ProxyBack) Close() + func (b *ProxyBack) Run(frontConn net.Conn, frontChunkReader pgproto3.ChunkReader) error + type ProxyFront struct + func NewProxyFront(conn net.Conn, authMapper AuthMapper) *ProxyFront + func (f *ProxyFront) Run() + func (f ProxyFront) Close()