feat: add event and slug proto

This commit is contained in:
2026-01-01 21:06:48 +07:00
parent 706340e0a9
commit eb2c8f6dc7
6 changed files with 768 additions and 0 deletions

30
proto/events.proto Normal file
View File

@@ -0,0 +1,30 @@
syntax = "proto3";
package events;
option go_package = "./gen";
import "google/protobuf/empty.proto";
service EventService {
rpc Subscribe(google.protobuf.Empty) returns (stream Event);
}
enum EventType {
SLUG_CHANGE = 0;
}
message Event {
EventType type = 1;
int64 timestamp_unix_ms = 2;
oneof data {
SlugChangeEvent data_event = 10;
}
}
message SlugChangeEvent {
string old = 1;
string new = 2;
}