11 lines
253 B
Go
11 lines
253 B
Go
package streamdeck
|
|
|
|
type Action struct {
|
|
uuid string
|
|
handlers map[string][]EventHandler
|
|
}
|
|
|
|
func (action *Action) RegisterHandler(eventName string, handler EventHandler) {
|
|
action.handlers[eventName] = append(action.handlers[eventName], handler)
|
|
}
|