mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 17:37:43 +00:00
initial commit
This commit is contained in:
17
fbs/nostr-index.fbs
Normal file
17
fbs/nostr-index.fbs
Normal file
@ -0,0 +1,17 @@
|
||||
namespace NostrIndex;
|
||||
|
||||
table Tag {
|
||||
key: uint8;
|
||||
val: [ubyte];
|
||||
}
|
||||
|
||||
table Event {
|
||||
id: [ubyte];
|
||||
pubkey: [ubyte];
|
||||
created_at: uint64;
|
||||
kind: uint64;
|
||||
tags: [Tag];
|
||||
}
|
||||
|
||||
table Empty {}
|
||||
root_type Empty;
|
41
fbs/yesstr.fbs
Normal file
41
fbs/yesstr.fbs
Normal file
@ -0,0 +1,41 @@
|
||||
namespace Yesstr;
|
||||
|
||||
|
||||
|
||||
// FilterSync
|
||||
|
||||
table RequestSync {
|
||||
filter: string; // only required for first in a sequence
|
||||
reqsEncoded: [ubyte];
|
||||
}
|
||||
|
||||
table ResponseSync {
|
||||
respsEncoded: [ubyte];
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Request/Response wrappers
|
||||
|
||||
union RequestPayload {
|
||||
RequestSync,
|
||||
}
|
||||
|
||||
union ResponsePayload {
|
||||
ResponseSync,
|
||||
}
|
||||
|
||||
table Request {
|
||||
requestId: uint64;
|
||||
payload: RequestPayload;
|
||||
}
|
||||
|
||||
table Response {
|
||||
requestId: uint64;
|
||||
payload: ResponsePayload;
|
||||
}
|
||||
|
||||
|
||||
|
||||
table Empty {}
|
||||
root_type Empty;
|
Reference in New Issue
Block a user