Commit c3bb247
committed
Add an endpoint to clear an instance's console buffer
Fixes #299
Add an endpoint to clear an instance's console buffer by clearing the circular buffer within the global app state buffer.
* **core/src/lib.rs**
- Add a method `clear_console_buffer` to the `AppState` struct to clear the console buffer for a specific instance.
* **core/src/handlers/events.rs**
- Add a new function `clear_console_buffer` to handle the request to clear the console buffer.
- Add a new route `/instance/:uuid/console/clear` to handle the request to clear the console buffer.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Lodestone-Team/lodestone/issues/299?shareId=XXXX-XXXX-XXXX-XXXX).1 parent 4b88f48 commit c3bb247
2 files changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
290 | 314 | | |
291 | 315 | | |
292 | 316 | | |
293 | 317 | | |
294 | 318 | | |
295 | 319 | | |
296 | 320 | | |
| 321 | + | |
297 | 322 | | |
298 | 323 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
0 commit comments