Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func InitializeDatabase ¶
func InitializeDatabase() error
func SearchAveragePerceptionDifference ¶
func SearchAveragePerceptionDifference(aHash, dHash, pHash *goimagehash.ImageHash, method *string) (bool, error)
func SearchSHA1 ¶
Types ¶
type Blacklist ¶
type Blacklist struct { Model Sha1 string `gorm:"unique;not null;index"` AverageHash string `gorm:"not null;index"` DifferenceHash string `gorm:"not null;index"` PerceptionHash string `gorm:"not null;index"` URL string `gorm:"unique;not null"` }
func (*Blacklist) DeleteEntry ¶
func (b *Blacklist) DeleteEntry()
Click to show internal directories.
Click to hide internal directories.