hook2xmpp/runtime/hooks.go

16 lines
246 B
Go
Raw Permalink Normal View History

2019-02-13 03:24:38 +01:00
package runtime
import (
"net/http"
2019-07-15 23:57:26 +02:00
"gosrc.io/xmpp"
2019-02-13 03:24:38 +01:00
)
2019-07-15 23:57:26 +02:00
type HookHandler func(xmpp.Sender, []Hook) func(http.ResponseWriter, *http.Request)
2019-02-13 03:24:38 +01:00
var HookRegister map[string]HookHandler
func init() {
HookRegister = make(map[string]HookHandler)
}