Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateTable = `` /* 177-byte string literal not displayed */
View Source
var ErrEntryNotFound = errors.New("entry not found")
View Source
var Logger = slog.New(slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{}))
View Source
var Now = time.Now
Functions ¶
func ComputeCacheID ¶ added in v0.3.1
Types ¶
type Cache ¶
func (*Cache) GetBySha256 ¶ added in v0.3.1
type Entry ¶
type Entry struct { ID string `gorm:"primarykey" field:"id"` Sha256 string `field:"sha256"` CreatedAt time.Time `field:"created_at"` UpdatedAt time.Time `field:"updated_at"` // DeletedAt gorm.DeletedAt `gorm:"index"` InitialLocation string `field:"location"` QuarantineLocation string `field:"quarantine"` RestoredAt time.Time `field:"restored_at"` }
Click to show internal directories.
Click to hide internal directories.