summaryrefslogtreecommitdiff
path: root/internal/cache/ap.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cache/ap.go')
-rw-r--r--internal/cache/ap.go29
1 files changed, 8 insertions, 21 deletions
diff --git a/internal/cache/ap.go b/internal/cache/ap.go
index 204752f54..6498d7991 100644
--- a/internal/cache/ap.go
+++ b/internal/cache/ap.go
@@ -17,27 +17,14 @@
package cache
-type APCaches interface {
- // Init will initialize all the ActivityPub caches in this collection.
- // NOTE: the cache MUST NOT be in use anywhere, this is not thread-safe.
- Init()
+type APCaches struct{}
- // Start will attempt to start all of the ActivityPub caches, or panic.
- Start()
+// Init will initialize all the ActivityPub caches in this collection.
+// NOTE: the cache MUST NOT be in use anywhere, this is not thread-safe.
+func (c *APCaches) Init() {}
- // Stop will attempt to stop all of the ActivityPub caches, or panic.
- Stop()
-}
+// Start will attempt to start all of the ActivityPub caches, or panic.
+func (c *APCaches) Start() {}
-// NewAP returns a new default implementation of APCaches.
-func NewAP() APCaches {
- return &apCaches{}
-}
-
-type apCaches struct{}
-
-func (c *apCaches) Init() {}
-
-func (c *apCaches) Start() {}
-
-func (c *apCaches) Stop() {}
+// Stop will attempt to stop all of the ActivityPub caches, or panic.
+func (c *APCaches) Stop() {}