Marine API
FaaS layer is based on the runtime Marine component significantly expanding it by providing a few ways of its instantiation as well as calling with JSON values.
Instantiation
- with_raw_config
- with_modules
- with_module_names
rust
rust
rust
rust
rust
rust
Creates a FaaS instance from the provided config and modules or just module names.
Calling a module
- call_with_ivalues
- call_with_json
rust
rust
rust
rust
Invokes a function of a module inside Marine by given function name with given arguments. For more info about IValue take a look to this chapter.
Getting a module interface
- get_interface
- FaaSInterface
rust
rust
rust
rust
This method returns a public interface of a module, i.e. a set of all public functions and records.
Getting module memory stats
- module_memory_stats
- MemoryStats
rust
rust
rust
rust
Returns a statistics of memory usage for all loaded modules.