Initial commit: Example Plugin 3 with async operations
This commit is contained in:
34
README.md
Normal file
34
README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Example Plugin 3
|
||||
|
||||
A third example plugin demonstrating async operations and simple data storage.
|
||||
|
||||
## Features
|
||||
|
||||
- Async data fetching hook
|
||||
- Data storage hook
|
||||
- Periodic status reporting
|
||||
|
||||
## Hooks
|
||||
|
||||
### fetch-data
|
||||
Retrieves stored data by key.
|
||||
|
||||
**Usage:**
|
||||
```javascript
|
||||
const value = await context.runHook('fetch-data', 'myKey');
|
||||
```
|
||||
|
||||
### store-data
|
||||
Stores data with a key.
|
||||
|
||||
**Usage:**
|
||||
```javascript
|
||||
await context.runHook('store-data', 'myKey', 'myValue');
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
Install via Plugin Host interactive installer or manually clone:
|
||||
```bash
|
||||
git clone http://synbox.ruv.wtf:8418/litruv/Plugin-Example3.git
|
||||
```
|
||||
Reference in New Issue
Block a user