31 lines
435 B
Protocol Buffer
31 lines
435 B
Protocol Buffer
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;
|
|
}
|
|
|