MCPcopy Index your code
hub / github.com/coder/coder / Method

Method Method

agent/proto/agent_drpc.pb.go:333–500  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

331func (DRPCAgentDescription) NumMethods() int { return 18 }
332
333func (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{},

Callers

nothing calls this directly

Calls 15

GetManifestMethod · 0.65
GetServiceBannerMethod · 0.65
UpdateStatsMethod · 0.65
UpdateLifecycleMethod · 0.65
BatchUpdateAppHealthsMethod · 0.65
UpdateStartupMethod · 0.65
BatchUpdateMetadataMethod · 0.65
BatchCreateLogsMethod · 0.65
ScriptCompletedMethod · 0.65

Tested by

no test coverage detected