func (p *PgProtocolState) LastPacketType() PacketType {
	return p.lastPacketType
}
LastPacketType returns type of the last seen packet.
package postgresql
import (
	"github.com/cossacklabs/acra/decryptor/base"
	"github.com/cossacklabs/acra/logging"
)
type PgProtocolState struct {
	lastPacketType PacketType
	pendingQuery   base.OnQueryObject
	pendingParse   *ParsePacket
	pendingBind    *BindPacket
	pendingExecute *ExecutePacket
}
type PacketType int
const (
	SimpleQueryPacket PacketType = iota
	ParseStatementPacket
	ParseCompletePacket
	BindStatementPacket
	BindCompletePacket
	DataPacket
	OtherPacket
)
func NewPgProtocolState() *PgProtocolState {
	return &PgProtocolState{lastPacketType: OtherPacket}
}