This commit is contained in:
jackdaw@loafle.com
2017-04-14 13:50:37 +09:00
commit 31c7b1b7fe
2 changed files with 69 additions and 0 deletions

7
observer/observer.go Normal file
View File

@@ -0,0 +1,7 @@
package observer
type Observer interface {
Add(id string, chan interface{})
Remove(id string)
Notify(id string, arg interface{})
}