]> git.lizzy.rs Git - go-anidb.git/blobdiff - misc.go
Add LICENSE file via addalicense.com
[go-anidb.git] / misc.go
diff --git a/misc.go b/misc.go
index 8cab28f1328c238ee6581e4bea9aae4e4d0ec6a3..bfce0389688b62143af82f674c05ab7c1614a40f 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -4,19 +4,27 @@ import (
        "time"
 )
 
-type Language string
+type MyListStats struct {
+       Anime         int
+       Episodes      int
+       Files         int
+       Filesize      int64
+       AddedAnime    int
+       AddedEpisodes int
+       AddedFiles    int
+       AddedGroups   int
 
-var (
-       // Default durations for the various caches.
-       // Used by the IsStale methods.
-       DefaultCacheDuration = 7 * 24 * time.Hour
-       AnimeCacheDuration   = DefaultCacheDuration
-       EpisodeCacheDuration = DefaultCacheDuration
-       GroupCacheDuration   = 4 * DefaultCacheDuration // They don't change that often.
-       FileCacheDuration    = 8 * DefaultCacheDuration // These change even less often.
+       Leech             float32 // rate of Files to AddedFiles
+       Glory             float32 // meaning undocumented
+       ViewedPctDatabase float32
+       MyListPctDatabase float32
+       AnimePctDatabase  float32 // Only valid if the titles database is loaded
+       ViewedPctMyList   float32
+       ViewedEpisodes    int
+       Votes             int
+       Reviews           int
 
-       // Used when there's some data missing on a file.
-       // Usually happens because the AVDump data hasn't been merged with the database
-       // yet, which is done on a daily cron job.
-       FileIncompleteCacheDuration = 24 * time.Hour
-)
+       ViewedTime time.Duration
+
+       Cached time.Time
+}