示例#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
文件: hello.pb.go 项目: micro/micro
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
文件: hotel.pb.go 项目: micro/micro
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}))
}
示例#8
0
func RegisterEventHandler(s server.Server, hdlr EventHandler, opts ...server.HandlerOption) {
	s.Handle(s.NewHandler(&Event{hdlr}, opts...))
}
示例#9
0
文件: debug.go 项目: micro/go-plugins
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
文件: db.pb.go 项目: micro/db-srv
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
文件: auth.pb.go 项目: micro/micro
func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) {
	s.Handle(s.NewHandler(&Auth{hdlr}, opts...))
}