20 lines
325 B
Protocol Buffer
20 lines
325 B
Protocol Buffer
|
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
|
||
|
|
||
|
syntax = "proto3";
|
||
|
package message;
|
||
|
|
||
|
message Body {
|
||
|
|
||
|
enum EncodingType {
|
||
|
NONE = 0;
|
||
|
ERROR = 1;
|
||
|
PBSERIALIZED = 2;
|
||
|
GOBSERIALIZED = 3;
|
||
|
JSONSERIALIZED = 4;
|
||
|
}
|
||
|
EncodingType type = 1;
|
||
|
bytes key = 2;
|
||
|
bytes value = 3;
|
||
|
|
||
|
}
|