summaryrefslogtreecommitdiff
path: root/internal/cache/size.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cache/size.go')
-rw-r--r--internal/cache/size.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/internal/cache/size.go b/internal/cache/size.go
index 62fb31469..f9d88491d 100644
--- a/internal/cache/size.go
+++ b/internal/cache/size.go
@@ -309,6 +309,38 @@ func sizeofEmojiCategory() uintptr {
}))
}
+func sizeofFilter() uintptr {
+ return uintptr(size.Of(&gtsmodel.Filter{
+ ID: exampleID,
+ CreatedAt: exampleTime,
+ UpdatedAt: exampleTime,
+ ExpiresAt: exampleTime,
+ AccountID: exampleID,
+ Title: exampleTextSmall,
+ Action: gtsmodel.FilterActionHide,
+ }))
+}
+
+func sizeofFilterKeyword() uintptr {
+ return uintptr(size.Of(&gtsmodel.FilterKeyword{
+ ID: exampleID,
+ CreatedAt: exampleTime,
+ UpdatedAt: exampleTime,
+ FilterID: exampleID,
+ Keyword: exampleTextSmall,
+ }))
+}
+
+func sizeofFilterStatus() uintptr {
+ return uintptr(size.Of(&gtsmodel.FilterStatus{
+ ID: exampleID,
+ CreatedAt: exampleTime,
+ UpdatedAt: exampleTime,
+ FilterID: exampleID,
+ StatusID: exampleID,
+ }))
+}
+
func sizeofFollow() uintptr {
return uintptr(size.Of(&gtsmodel.Follow{
ID: exampleID,