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