pub async fn init(config: JsValue) -> Result<Cedarling, Error>Expand description
Creates a Cedarling application from bootstrap properties.
§Arguments
config- A JavaScriptMapor plain object of Cedarling bootstrap-property names and values.
§Example
await initWasm();
const cedarling = await init({
CEDARLING_APPLICATION_NAME: "task-api",
CEDARLING_POLICY_STORE_URI: "https://example.com/policy-store.cjar",
CEDARLING_LOG_TYPE: "memory",
CEDARLING_LOG_TTL: 120,
});