Continued work on download system (cache + cf meta now implemented)

This commit is contained in:
comp500
2022-05-18 22:11:28 +01:00
parent 30bc6d81bb
commit e73fa8c48a
5 changed files with 441 additions and 200 deletions

View File

@@ -33,6 +33,14 @@ func GetHashImpl(hashType string) (HashStringer, error) {
return nil, fmt.Errorf("hash implementation %s not found", hashType)
}
var preferredHashList = []string{
"murmur2",
"md5",
"sha1",
"sha256",
"sha512",
}
type HashStringer interface {
hash.Hash
HashToString([]byte) string