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

Method Invoke

coderd/tracing/drpc.go:39–41  ·  view source on GitHub ↗

Invoke implements drpc.Conn's Invoke method with tracing information injected into the context.

(ctx context.Context, rpc string, enc drpc.Encoding, in drpc.Message, out drpc.Message)

Source from the content-addressed store, hash-verified

37
38// Invoke implements drpc.Conn's Invoke method with tracing information injected into the context.
39func (c *DRPCConn) Invoke(ctx context.Context, rpc string, enc drpc.Encoding, in drpc.Message, out drpc.Message) (err error) {
40 return c.Conn.Invoke(c.addMetadata(ctx), rpc, enc, in, out)
41}
42
43// NewStream implements drpc.Conn's NewStream method with tracing information injected into the context.
44func (c *DRPCConn) NewStream(ctx context.Context, rpc string, enc drpc.Encoding) (_ drpc.Stream, err error) {

Callers 15

InvokeMethod · 0.95
AcquireJobMethod · 0.45
CommitQuotaMethod · 0.45
UpdateJobMethod · 0.45
FailJobMethod · 0.45
CompleteJobMethod · 0.45
RunWithSubcommandsMethod · 0.45
newProvisionerJobFunction · 0.45
TestExternalAuthFunction · 0.45
TestAgentFunction · 0.45

Calls 1

addMetadataMethod · 0.95

Tested by 13

newProvisionerJobFunction · 0.36
TestExternalAuthFunction · 0.36
TestAgentFunction · 0.36
newPromptFunction · 0.36
passwordHelperFunction · 0.36
newSelectFunction · 0.36
newRichSelectFunction · 0.36
TestRichMultiSelectFunction · 0.36
newMultiSelectFunction · 0.36
TestBuilderFunction · 0.36