summaryrefslogtreecommitdiff
path: root/internal/cache/size.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-01-05 13:20:33 +0100
committerLibravatar GitHub <noreply@github.com>2025-01-05 13:20:33 +0100
commite9bb7ddd3aa11da5c48a75c4a600f8fe5cc1c990 (patch)
treea2897775112a821aa093b6e2686044814912001f /internal/cache/size.go
parent[chore] Update robots.txt with more AI bots (#3634) (diff)
downloadgotosocial-e9bb7ddd3aa11da5c48a75c4a600f8fe5cc1c990.tar.xz
[feature] Create/update/remove domain permission subscriptions (#3623)
* [feature] Create/update/remove domain permission subscriptions * lint * envparsing * remove errant fmt.Println * create drafts, subs, exclude, from snapshot models * name etag column correctly * remove count column * lint
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,