mirror of
https://codeberg.org/scip/anydb.git
synced 2025-12-17 04:20:59 +01:00
switch to use protobuf for internal data structure in DB
This commit is contained in:
17
app/dbentry.proto
Normal file
17
app/dbentry.proto
Normal file
@@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
package app;
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "github.com/tlinden/anydb/app";
|
||||
|
||||
message DbEntry {
|
||||
string Id = 1;
|
||||
string Key = 2;
|
||||
string Value = 3;
|
||||
bytes Bin = 4;
|
||||
repeated string Tags = 5;
|
||||
google.protobuf.Timestamp Created = 6;
|
||||
uint64 Size = 7;
|
||||
bool Encrypted = 8;
|
||||
}
|
||||
Reference in New Issue
Block a user