summaryrefslogtreecommitdiff
path: root/plugins/memory/driver.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/memory/driver.go')
-rw-r--r--plugins/memory/driver.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/memory/driver.go b/plugins/memory/driver.go
deleted file mode 100644
index 5a96e773..00000000
--- a/plugins/memory/driver.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package memory
-
-import (
- "github.com/spiral/roadrunner/v2/plugins/memory/bst"
-)
-
-type Driver struct {
- tree bst.Storage
-}
-
-func NewInMemoryDriver() bst.Storage {
- b := &Driver{
- tree: bst.NewBST(),
- }
- return b
-}
-
-func (d *Driver) Insert(uuid string, topic string) {
- d.tree.Insert(uuid, topic)
-}
-
-func (d *Driver) Remove(uuid, topic string) {
- d.tree.Remove(uuid, topic)
-}
-
-func (d *Driver) Get(topic string) map[string]struct{} {
- return d.tree.Get(topic)
-}