contentplatform/events.go

11 lines
143 B
Go
Raw Normal View History

package main
type Event struct {
Name string
Callback func(params ...interface{})
}
type EventHandler struct {
EventC <-chan *Event
}