diff options
Diffstat (limited to 'plugins/memory/bst/interface.go')
-rw-r--r-- | plugins/memory/bst/interface.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/memory/bst/interface.go b/plugins/memory/bst/interface.go new file mode 100644 index 00000000..ecf40414 --- /dev/null +++ b/plugins/memory/bst/interface.go @@ -0,0 +1,11 @@ +package bst + +// Storage is general in-memory BST storage implementation +type Storage interface { + // Insert inserts to a vertex with topic ident connection uuid + Insert(uuid string, topic string) + // Remove removes uuid from topic, if the uuid is single for a topic, whole vertex will be removed + Remove(uuid, topic string) + // Get will return all connections associated with the topic + Get(topic string) map[string]struct{} +} |