[−][src]Macro envoy_sdk::on_module_load
Generates a _start
function with a given code that will be called by Envoy
to let WebAssembly module initialize itself.
Examples
use envoy::on_module_load; on_module_load! { initialize(); } // put initialization logic into a function to make it unit testable /// Does one-time initialization. fn initialize() { // set default log level // register extensions // etc }