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.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/cache/size.go b/internal/cache/size.go
index 988755099..2c8772f96 100644
--- a/internal/cache/size.go
+++ b/internal/cache/size.go
@@ -357,6 +357,25 @@ func sizeofDomainPermissionDraft() uintptr {
}))
}
+func sizeofDomainPermissionSubscription() uintptr {
+ return uintptr(size.Of(&gtsmodel.DomainPermissionSubscription{
+ ID: exampleID,
+ Priority: uint8(255),
+ Title: exampleTextSmall,
+ PermissionType: gtsmodel.DomainPermissionBlock,
+ AsDraft: util.Ptr(true),
+ CreatedByAccountID: exampleID,
+ URI: exampleURI,
+ ContentType: gtsmodel.DomainPermSubContentTypeCSV,
+ FetchUsername: "username",
+ FetchPassword: "password",
+ FetchedAt: exampleTime,
+ SuccessfullyFetchedAt: exampleTime,
+ ETag: exampleID,
+ Error: exampleTextSmall,
+ }))
+}
+
func sizeofEmoji() uintptr {
return uintptr(size.Of(&gtsmodel.Emoji{
ID: exampleID,