MCPcopy Create free account
hub / github.com/serverlesstechnology/cqrs / lambda_command_handler

Function lambda_command_handler

demo/src/lambda_main.rs:28–39  ·  view source on GitHub ↗
(
    Path(account_id): Path<String>,
    State(state): State<ApplicationState>,
    CommandExtractor(metadata, command): CommandExtractor,
)

Source from the content-addressed store, hash-verified

26 Ok(query_handler(Path(account_id), State(state)).await)
27}
28async fn lambda_command_handler(
29 Path(account_id): Path<String>,
30 State(state): State<ApplicationState>,
31 CommandExtractor(metadata, command): CommandExtractor,
32) -> Result<Response, (StatusCode, String)> {
33 Ok(command_handler(
34 Path(account_id),
35 State(state),
36 CommandExtractor(metadata, command),
37 )
38 .await)
39}

Callers

nothing calls this directly

Calls 2

command_handlerFunction · 0.85
CommandExtractorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…