#cmd/native-gateway

    MoonBit-native gateway execution entrypoint for vcdb.

    This package executes the same gateway API layer used by transport adapters, but without the JavaScript runtime. It is intended for native-side verification and future native hosting work.

    #Usage

    moon run cmd/native-gateway -- healthz moon run cmd/native-gateway -- request --method GET --path /collections moon run cmd/native-gateway -- collections create demo --dim 3 moon run cmd/native-gateway -- points upsert demo --id 1 --vector 1,0,0

    #Notes

    • State lives in-process today via MemoryStorage.
    • Long-lived HTTP serving remains the responsibility of transport adapters such as packages/vcdb/src/server.ts.

    NativeGateway

    NativeGateway::new

    NativeGateway::run

    async fn NativeGateway::run(self : NativeGateway, args : Array[String]) -> String

    NativeGateway::try_execute_direct

    async fn NativeGateway::try_execute_direct(_self : NativeGateway, matches :
    Matches
    ) -> Bool

    Check if the command is a direct CLI command (dump/load) that bypasses the gateway and writes its own output.