MCPcopy Index your code
hub / github.com/callstack/agent-device / leaseRpcMethodForCommand

Function leaseRpcMethodForCommand

src/daemon/client/daemon-client-rpc.ts:128–137  ·  view source on GitHub ↗
(command: LeaseRpcCommand)

Source from the content-addressed store, hash-verified

126}
127
128function leaseRpcMethodForCommand(command: LeaseRpcCommand): string {
129 switch (command) {
130 case 'lease_allocate':
131 return 'agent_device.lease.allocate';
132 case 'lease_heartbeat':
133 return 'agent_device.lease.heartbeat';
134 case 'lease_release':
135 return 'agent_device.lease.release';
136 }
137}
138
139function buildLeaseRpcParams(
140 req: DaemonRequest,

Callers 1

buildHttpRpcPayloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected