func init() { vtgate.RegisterVTGates = append(vtgate.RegisterVTGates, func(vtGate vtgateservice.VTGateService) { if servenv.GRPCCheckServiceMap("vtgateservice") { vtgateservicepb.RegisterVitessServer(servenv.GRPCServer, &VTGate{vtGate}) } }) }
func init() { binlog.RegisterUpdateStreamServices = append(binlog.RegisterUpdateStreamServices, func(updateStream proto.UpdateStream) { if servenv.GRPCCheckServiceMap("updatestream") { pbs.RegisterUpdateStreamServer(servenv.GRPCServer, New(updateStream)) } }) }
func init() { tabletserver.RegisterFunctions = append(tabletserver.RegisterFunctions, func(qsc tabletserver.Controller) { if servenv.GRPCCheckServiceMap("queryservice") { queryservicepb.RegisterQueryServer(servenv.GRPCServer, &query{qsc.QueryService()}) } }) }
func init() { servenv.OnRun(func() { if servenv.GRPCCheckServiceMap("vtctl") { grpcvtctlserver.StartServer(servenv.GRPCServer, ts) } }) }
func init() { tabletmanager.RegisterQueryServices = append(tabletmanager.RegisterQueryServices, func(agent *tabletmanager.ActionAgent) { if servenv.GRPCCheckServiceMap("tabletmanager") { tabletmanagerservicepb.RegisterTabletManagerServer(servenv.GRPCServer, &server{agent}) } }) }
func init() { tabletserver.QueryServiceControlRegisterFunctions = append(tabletserver.QueryServiceControlRegisterFunctions, func(qsc tabletserver.QueryServiceControl) { if servenv.GRPCCheckServiceMap("queryservice") { pbs.RegisterQueryServer(servenv.GRPCServer, New(qsc.QueryService())) } }) }
func init() { servenv.OnRun(func() { if servenv.GRPCCheckServiceMap("throttler") { StartServer(servenv.GRPCServer, throttler.GlobalManager) } }) }
func init() { servenv.InitServiceMap("grpc", "mysqlctl") servenv.OnRun(func() { if servenv.GRPCCheckServiceMap("mysqlctl") { grpcmysqlctlserver.StartServer(servenv.GRPCServer, mysqld) } }) }
func init() { servenv.RegisterGRPCFlags() servenv.OnRun(func() { if servenv.GRPCCheckServiceMap("vtworker") { grpcvtworkerserver.StartServer(servenv.GRPCServer, wi) } }) }
func init() { servenv.RegisterGRPCFlags() tabletserver.RegisterFunctions = append(tabletserver.RegisterFunctions, func(qsc tabletserver.Controller) { if servenv.GRPCCheckServiceMap("queryservice") { grpcqueryservice.Register(servenv.GRPCServer, qsc.QueryService()) } }) }
func init() { servenv.RegisterGRPCFlags() l2vtgate.RegisterL2VTGates = append(l2vtgate.RegisterL2VTGates, func(qs queryservice.QueryService) { if servenv.GRPCCheckServiceMap("queryservice") { grpcqueryservice.Register(servenv.GRPCServer, qs) } }) }
func init() { servenv.ServiceMap["grpc-mysqlctl"] = true servenv.OnRun(func() { if servenv.GRPCCheckServiceMap("mysqlctl") { grpcmysqlctlserver.StartServer(servenv.GRPCServer, mysqld) } }) }