Beispiel #1
0
func RegisterConfigHandler(s server.Server, hdlr ConfigHandler, opts ...server.HandlerOption) {
	s.Handle(s.NewHandler(&Config{hdlr}, opts...))
}
Beispiel #2
0
func RegisterRuleHandler(s server.Server, hdlr RuleHandler, opts ...server.HandlerOption) {
	s.Handle(s.NewHandler(&Rule{hdlr}, opts...))
}
Beispiel #3
0
func RegisterGreeterHandler(s server.Server, hdlr GreeterHandler, opts ...server.HandlerOption) {
	s.Handle(s.NewHandler(&Greeter{hdlr}, opts...))
}
Beispiel #4
0
func RegisterExampleHandler(s server.Server, hdlr ExampleHandler) {
	s.Handle(s.NewHandler(&Example{hdlr}))
}
Beispiel #5
0
func RegisterOauth2Handler(s server.Server, hdlr Oauth2Handler) {
	s.Handle(s.NewHandler(&Oauth2{hdlr}))
}
Beispiel #6
0
func RegisterHotelHandler(s server.Server, hdlr HotelHandler, opts ...server.HandlerOption) {
	s.Handle(s.NewHandler(&Hotel{hdlr}, opts...))
}
func RegisterMonitorHandler(s server.Server, hdlr MonitorHandler) {
	s.Handle(s.NewHandler(&Monitor{hdlr}))
}
Beispiel #8
0
func RegisterEventHandler(s server.Server, hdlr EventHandler, opts ...server.HandlerOption) {
	s.Handle(s.NewHandler(&Event{hdlr}, opts...))
}
Beispiel #9
0
func registerDebugHandler(s server.Server) {
	s.Handle(s.NewHandler(&Debug{s.Options().DebugHandler}, server.InternalHandler(true)))
}
Beispiel #10
0
func RegisterSayHandler(s server.Server, hdlr SayHandler) {
	s.Handle(s.NewHandler(&Say{hdlr}))
}
Beispiel #11
0
func RegisterKVHandler(s server.Server, hdlr KVHandler) {
	s.Handle(s.NewHandler(&KV{hdlr}))
}
Beispiel #12
0
func RegisterGreeterHandler(s server.Server, hdlr GreeterHandler) {
	s.Handle(s.NewHandler(&Greeter{hdlr}))
}
Beispiel #13
0
func RegisterElasticHandler(s server.Server, hdlr ElasticHandler) {
	s.Handle(s.NewHandler(&Elastic{hdlr}))
}
Beispiel #14
0
func RegisterKVHandler(s server.Server, hdlr KVHandler, opts ...server.HandlerOption) {
	s.Handle(s.NewHandler(&KV{hdlr}, opts...))
}
Beispiel #15
0
func RegisterDBHandler(s server.Server, hdlr DBHandler) {
	s.Handle(s.NewHandler(&DB{hdlr}))
}
Beispiel #16
0
func RegisterAccountHandler(s server.Server, hdlr AccountHandler) {
	s.Handle(s.NewHandler(&Account{hdlr}))
}
Beispiel #17
0
func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) {
	s.Handle(s.NewHandler(&Auth{hdlr}, opts...))
}