Delete extractor directory

Fraud
This commit is contained in:
Tay754 2024-08-15 06:38:33 -04:00 committed by GitHub
parent 6a495a1449
commit 1d829ac257
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 30 deletions

View File

@ -1,10 +0,0 @@
package extractor
// Extractor is an interface for extracting data from browser data files
type Extractor interface {
Extract(masterKey []byte) error
Name() string
Len() int
}

View File

@ -1,20 +0,0 @@
package extractor
import (
"github.com/moond4rk/hackbrowserdata/types"
)
var extractorRegistry = make(map[types.DataType]func() Extractor)
// RegisterExtractor is used to register the data source
func RegisterExtractor(dataType types.DataType, factoryFunc func() Extractor) {
extractorRegistry[dataType] = factoryFunc
}
// CreateExtractor is used to create the data source
func CreateExtractor(dataType types.DataType) Extractor {
if factoryFunc, ok := extractorRegistry[dataType]; ok {
return factoryFunc()
}
return nil
}