Function apollo_router::main

source ·
pub fn main() -> Result<()>
Expand description

This is the main router entrypoint.

Starts a Tokio runtime and runs a Router in it based on command-line options. Returns on fatal error or after graceful shutdown has completed.

Refer to the examples if you would like to see how to run your own router with plugins.