(n int)
| 331 | func (DRPCAgentDescription) NumMethods() int { return 18 } |
| 332 | |
| 333 | func (DRPCAgentDescription) Method(n int) (string, drpc.Encoding, drpc.Receiver, interface{}, bool) { |
| 334 | switch n { |
| 335 | case 0: |
| 336 | return "/coder.agent.v2.Agent/GetManifest", drpcEncoding_File_agent_proto_agent_proto{}, |
| 337 | func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { |
| 338 | return srv.(DRPCAgentServer). |
| 339 | GetManifest( |
| 340 | ctx, |
| 341 | in1.(*GetManifestRequest), |
| 342 | ) |
| 343 | }, DRPCAgentServer.GetManifest, true |
| 344 | case 1: |
| 345 | return "/coder.agent.v2.Agent/GetServiceBanner", drpcEncoding_File_agent_proto_agent_proto{}, |
| 346 | func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { |
| 347 | return srv.(DRPCAgentServer). |
| 348 | GetServiceBanner( |
| 349 | ctx, |
| 350 | in1.(*GetServiceBannerRequest), |
| 351 | ) |
| 352 | }, DRPCAgentServer.GetServiceBanner, true |
| 353 | case 2: |
| 354 | return "/coder.agent.v2.Agent/UpdateStats", drpcEncoding_File_agent_proto_agent_proto{}, |
| 355 | func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { |
| 356 | return srv.(DRPCAgentServer). |
| 357 | UpdateStats( |
| 358 | ctx, |
| 359 | in1.(*UpdateStatsRequest), |
| 360 | ) |
| 361 | }, DRPCAgentServer.UpdateStats, true |
| 362 | case 3: |
| 363 | return "/coder.agent.v2.Agent/UpdateLifecycle", drpcEncoding_File_agent_proto_agent_proto{}, |
| 364 | func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { |
| 365 | return srv.(DRPCAgentServer). |
| 366 | UpdateLifecycle( |
| 367 | ctx, |
| 368 | in1.(*UpdateLifecycleRequest), |
| 369 | ) |
| 370 | }, DRPCAgentServer.UpdateLifecycle, true |
| 371 | case 4: |
| 372 | return "/coder.agent.v2.Agent/BatchUpdateAppHealths", drpcEncoding_File_agent_proto_agent_proto{}, |
| 373 | func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { |
| 374 | return srv.(DRPCAgentServer). |
| 375 | BatchUpdateAppHealths( |
| 376 | ctx, |
| 377 | in1.(*BatchUpdateAppHealthRequest), |
| 378 | ) |
| 379 | }, DRPCAgentServer.BatchUpdateAppHealths, true |
| 380 | case 5: |
| 381 | return "/coder.agent.v2.Agent/UpdateStartup", drpcEncoding_File_agent_proto_agent_proto{}, |
| 382 | func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) { |
| 383 | return srv.(DRPCAgentServer). |
| 384 | UpdateStartup( |
| 385 | ctx, |
| 386 | in1.(*UpdateStartupRequest), |
| 387 | ) |
| 388 | }, DRPCAgentServer.UpdateStartup, true |
| 389 | case 6: |
| 390 | return "/coder.agent.v2.Agent/BatchUpdateMetadata", drpcEncoding_File_agent_proto_agent_proto{}, |
nothing calls this directly
no test coverage detected