coreinterface, handlerinterface, event, eventhandler

This commit is contained in:
Darko Luketic 2019-01-16 04:19:11 +01:00
parent 6d2f5d05c7
commit c9f3abd8b9
3 changed files with 62 additions and 0 deletions

10
events.go Normal file
View file

@ -0,0 +1,10 @@
package main
type Event struct {
Name string
Callback func(params ...interface{})
}
type EventHandler struct {
EventC <-chan *Event
}