func NewDecryptorFactory(setting *base.DecryptorSetting) *DecryptorFactory {
	dataDecryptor := func() base.DataDecryptor {
		return NewPgHexDecryptor()
	}
	matcherPool := func() *zone.MatcherPool {
		return zone.NewMatcherPool(zone.NewPgMatcherFactory())
	}
	return &DecryptorFactory{
		decryptorFactory:   dataDecryptor,
		zoneMatcherFactory: matcherPool,
		settings:           setting,
	}
}
NewDecryptorFactory return new DecryptorFactory
package postgresql
import (
	"github.com/cossacklabs/acra/decryptor/base"
	"github.com/cossacklabs/acra/zone"
)
type EscapeType int8
const (
	HexByteaFormat    EscapeType = 1
	EscapeByteaFormat EscapeType = 2
)
type dataDecryptorFactoryMethod func() base.DataDecryptor
type matcherPoolFactoryMethod func() *zone.MatcherPool
type DecryptorFactory struct {
	settings           *base.DecryptorSetting
	decryptorFactory   dataDecryptorFactoryMethod
	zoneMatcherFactory matcherPoolFactoryMethod
}