Add event stream module

This commit is contained in:
9seconds
2021-03-15 21:34:53 +03:00
parent abff0cf211
commit b08d945d7c
13 changed files with 225 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
package events
import "github.com/9seconds/mtg/v2/mtglib"
type Observer interface {
EventStart(mtglib.EventStart)
EventFinish(mtglib.EventFinish)
Shutdown()
}
type ObserverFactory func() Observer