Adds API for create and delete stream

This commit is contained in:
Alexey Khit
2022-08-21 09:29:44 +03:00
parent 7560bcbc83
commit d1b29275d7
2 changed files with 33 additions and 6 deletions
+4
View File
@@ -34,6 +34,10 @@ func Get(name string) *Stream {
return nil
}
func Delete(name string) {
delete(streams, name)
}
func All() map[string]interface{} {
all := map[string]interface{}{}
for name, stream := range streams {