mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
431 B
Protocol Buffer
27 lines
431 B
Protocol Buffer
10 months ago
|
syntax = "proto3";
|
||
|
|
||
|
package memos.store;
|
||
|
|
||
|
import "google/protobuf/timestamp.proto";
|
||
|
|
||
|
option go_package = "gen/store";
|
||
|
|
||
|
enum ResourceStorageType {
|
||
|
RESOURCE_STORAGE_TYPE_UNSPECIFIED = 0;
|
||
|
LOCAL = 1;
|
||
|
S3 = 2;
|
||
|
EXTERNAL = 3;
|
||
|
}
|
||
|
|
||
|
message ResourcePayload {
|
||
|
oneof payload {
|
||
|
S3Object s3_object = 1;
|
||
|
}
|
||
|
|
||
|
message S3Object {
|
||
|
string bucket = 1;
|
||
|
string key = 2;
|
||
|
google.protobuf.Timestamp last_presigned_time = 3;
|
||
|
}
|
||
|
}
|