hook2xmpp/runtime/hooks.go

16 lines
246 B
Go

package runtime
import (
"net/http"
"gosrc.io/xmpp"
)
type HookHandler func(xmpp.Sender, []Hook) func(http.ResponseWriter, *http.Request)
var HookRegister map[string]HookHandler
func init() {
HookRegister = make(map[string]HookHandler)
}