Add hashes for each book

Check if the uploaded book is already in the library
This commit is contained in:
Las Zenow 2020-05-03 09:35:17 +00:00
parent 154867c50c
commit a1ee320eba
4 changed files with 41 additions and 5 deletions

View file

@ -45,6 +45,10 @@ func (db *roDB) IsBookActive(id string) bool {
return db.db.IsBookActive(id)
}
func (db *roDB) ExistsBookHash(hash []byte) bool {
return db.db.ExistsBookHash(hash)
}
func (db *roDB) AddUser(name string, pass string) error {
return errors.New("RO database")
}