MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / invoke

Method invoke

crates/cargo-lambda-watch/src/requests.rs:91–110  ·  view source on GitHub ↗
(id: &str, event: &InvokeRequest)

Source from the content-addressed store, hash-verified

89
90impl NextEvent {
91 pub fn invoke(id: &str, event: &InvokeRequest) -> NextEvent {
92 let tracing_id = event
93 .req
94 .headers()
95 .get(AWS_XRAY_TRACE_HEADER)
96 .and_then(|h| h.to_str().ok())
97 .unwrap_or_default();
98
99 let e = InvokeEvent {
100 request_id: id.to_string(),
101 invoked_function_arn: event.function_name.clone(),
102 tracing: Tracing {
103 r#type: AWS_XRAY_TRACE_HEADER.to_string(),
104 value: tracing_id.to_string(),
105 },
106 ..Default::default()
107 };
108
109 NextEvent::Invoke(e)
110 }
111
112 pub fn shutdown(reason: &str) -> NextEvent {
113 NextEvent::Shutdown(ShutdownEvent {

Callers 1

invoke_remoteMethod · 0.80

Calls 2

InvokeClass · 0.85
getMethod · 0.80

Tested by

no test coverage detected