Initial commit

Proof-of-concept implementation. Bugs will occur.
This commit is contained in:
2026-02-12 01:18:46 +03:00
commit 13ac06c14b
553 changed files with 253003 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package models
import (
"time"
"source.hodakov.me/hdkv/faketunes/internal/domains/cacher/dto"
)
type CacheItem struct {
Path string
Size int64
Updated time.Time
}
func CacheItemModelToDTO(item *CacheItem) *dto.CacheItem {
return &dto.CacheItem{
Path: item.Path,
Size: item.Size,
Updated: item.Updated,
}
}

View File

@@ -0,0 +1,9 @@
package models
import "time"
// CacherStat is representing information about a single object size in cache.
type CacherStat struct {
Size int64
Created time.Time
}