2
3
Fork
You've already forked databook
1

Change input of plugins to HashMap #16

Closed
opened 2022年10月07日 18:37:02 +02:00 by era · 3 comments
Owner
Copy link

Currently the input of plugins is just a string, replace it with a HashMap where Key is always a string, but the value can be: Another HashMap or String

Currently the input of plugins is just a string, replace it with a HashMap where Key is always a string, but the value can be: Another HashMap or String
Author
Owner
Copy link

Also, the input is hardcoded right now in server.rs, we should pass the whole options map to the plugin, e.g. in line

.invoke(&request.into_inner().name,"sample_input".to_string())

should pass instead request.options instead of sample_input

Also, the input is hardcoded right now in server.rs, we should pass the whole options map to the plugin, e.g. in line https://codeberg.org/era/databook/src/commit/832efeb29d387f2ef89f4e0a93c128c16acc0f9d/databook-rs/src/server.rs#L52 should pass instead `request.options` instead of `sample_input`
Author
Owner
Copy link

I will expose a "get" method from runtime that will fetch the data from the hashmap.

I will expose a "get" method from runtime that will fetch the data from the hashmap.
Author
Owner
Copy link
https://codeberg.org/era/databook/commit/2bc8ac54d0cebce36b4ea778f06b84e17b8fadf2
Sign in to join this conversation.
No Branch/Tag specified
main
era/upgradewit
feature/front-back-communication
feature/initial-layout-structure-web
elias/wit_bindgen3
feature/adding-sveltekit-web
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
era/databook#16
Reference in a new issue
era/databook
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?