wasmcloud_provider_sdk::provider

Function load_host_data

source
pub fn load_host_data() -> ProviderInitResult<&'static HostData>
Expand description

Loads configuration data sent from the host over stdin. The returned host data contains all the configuration information needed to connect to the lattice and any additional configuration provided to this provider (like config_json).

NOTE: this function will read the data from stdin exactly once. If this function is called more than once, it will return a copy of the original data fetched