coreinterface, handlerinterface, event, eventhandler
This commit is contained in:
parent
6d2f5d05c7
commit
c9f3abd8b9
3 changed files with 62 additions and 0 deletions
10
events.go
Normal file
10
events.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package main
|
||||
|
||||
type Event struct {
|
||||
Name string
|
||||
Callback func(params ...interface{})
|
||||
}
|
||||
|
||||
type EventHandler struct {
|
||||
EventC <-chan *Event
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue