summaryrefslogtreecommitdiffstats
path: root/internal/api/api.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-10-04 22:44:33 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-10-04 22:44:33 -0700
commit624985afaaa8b94e4d9685bcdc935d467f9e7060 (patch)
tree7b13e8f4ccf75b6042bebea7fb239570644a216e /internal/api/api.go
parent573601b19c8ae582adcd1a7c4b8c0ebfa4295aed (diff)
downloadroseh.moe-624985afaaa8b94e4d9685bcdc935d467f9e7060.tar.zst
Allow downloading without gob
Diffstat (limited to 'internal/api/api.go')
-rw-r--r--internal/api/api.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/api/api.go b/internal/api/api.go
index 88a0011..6c9ab3a 100644
--- a/internal/api/api.go
+++ b/internal/api/api.go
@@ -38,6 +38,7 @@ type ListNotesResponse struct {
type CreateNoteRequest struct {
ContinuationToken []byte
+ FileName string
Chunk []byte
More bool
}
@@ -52,7 +53,8 @@ type ReadNoteRequest struct {
}
type ReadNoteResponseStream struct {
- Chunk []byte
+ FileName string
+ Chunk []byte
}
type DeleteNoteRequest struct{}