Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteRule ¶
func ExecuteRule(files []file.FileMetadataAndVersion) []common.FileNotification
func IgnoreAndMarkAlreadyNotified ¶
func IgnoreAndMarkAlreadyNotified(db *gorm.DB, n []common.FileNotification) ([]common.FileNotification, error)
Types ¶
type NotificationForFileVersion ¶
type NotificationForFileVersion struct { ID uint64 `gorm:"primary_key"` FileMetadataID uint64 `gorm:"type:bigint not null REFERENCES file_metadata(id) ON DELETE CASCADE"` FileVersionID uint64 `gorm:"type:bigint not null REFERENCES file_versions(id) ON DELETE CASCADE"` Count uint64 `gorm:"type:bigint not null"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.