Move profile fingerprints to separate package
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
package profile
|
package profile
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
fingerprintWeights = map[string]int{
|
fingerprintWeights = map[string]int{
|
||||||
"full_path": 2,
|
"full_path": 2,
|
||||||
@@ -35,6 +33,8 @@ func GetFingerprintWeight(fpType string) (weight int) {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: move to profile
|
||||||
|
/*
|
||||||
// AddFingerprint adds the given fingerprint to the profile.
|
// AddFingerprint adds the given fingerprint to the profile.
|
||||||
func (profile *Profile) AddFingerprint(fp *Fingerprint) {
|
func (profile *Profile) AddFingerprint(fp *Fingerprint) {
|
||||||
if fp.OS == "" {
|
if fp.OS == "" {
|
||||||
@@ -46,3 +46,4 @@ func (profile *Profile) AddFingerprint(fp *Fingerprint) {
|
|||||||
|
|
||||||
profile.Fingerprints = append(profile.Fingerprints, fp)
|
profile.Fingerprints = append(profile.Fingerprints, fp)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
Reference in New Issue
Block a user