Add hash interface

This commit is contained in:
Jingfang Liu
2018-10-05 13:29:06 -07:00
parent 489f6e2e67
commit 5036a12a65
11 changed files with 45 additions and 27 deletions

View File

@@ -43,3 +43,8 @@ type Loader interface {
// Cleanup cleans the loader
Cleanup() error
}
// Hash interface provides function to compute hash of objects
type Hash interface {
Hash(m map[string]interface{}) (string, error)
}