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