Documentation
¶
Overview ¶
Package wasm provides WASM-based data source support for tinkerdown. This allows community sources to be distributed as WASM modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WasmSource ¶
type WasmSource struct {
// contains filtered or unexported fields
}
func NewWasmSource ¶
func NewWasmSource(name, path, siteDir string, initConfig map[string]string) (*WasmSource, error)
NewWasmSource creates a new WASM-based source. path is the path to the .wasm file (relative to siteDir or absolute). initConfig contains initialization parameters to pass to the module.
func (*WasmSource) Close ¶
func (s *WasmSource) Close() error
Close releases all resources held by the WASM runtime.
func (*WasmSource) Fetch ¶
func (s *WasmSource) Fetch(ctx context.Context) ([]map[string]interface{}, error)
Fetch retrieves data from the WASM source.
func (*WasmSource) IsReadonly ¶
func (s *WasmSource) IsReadonly() bool
IsReadonly returns whether this source supports write operations.
Click to show internal directories.
Click to hide internal directories.