rally/generator/json_rpc_dispatch
JSON-specific RPC dispatch codegen.
Generates dispatch functions that route JSON-encoded RPC calls to server_* handlers. Handles JSON response encoding and type registry building for the JSON protocol path.
Values
pub fn closure_param_for_fieldtype(
ft: field_type.FieldType,
) -> String
pub fn endpoint_json_tag(
endpoint: scanner.HandlerEndpoint,
) -> String
pub fn generate_json_dispatch_function(
endpoints: List(scanner.HandlerEndpoint),
has_auth: Bool,
) -> String
pub fn generate_json_dispatch_function_with_prefix(
endpoints: List(scanner.HandlerEndpoint),
has_auth: Bool,
encode_prefix: String,
) -> String
pub fn handler_alias(module_path: String) -> String
pub fn handler_imports(
endpoints: List(scanner.HandlerEndpoint),
) -> List(String)
pub fn json_dispatch_arm(
e: scanner.HandlerEndpoint,
has_auth: Bool,
encode_prefix: String,
) -> String
pub fn json_encoder_for_fieldtype(
ft: field_type.FieldType,
var: String,
) -> String
pub fn json_handler_call(
e: scanner.HandlerEndpoint,
alias: String,
has_auth: Bool,
) -> String
pub fn json_response_encode(e: scanner.HandlerEndpoint) -> String
pub fn to_pascal_case(name: String) -> String