From 22d07987494113dc85542b753c3ecc7e9db37511 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 10 Mar 2025 06:53:30 -0500 Subject: events table --- event.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 event.proto (limited to 'event.proto') diff --git a/event.proto b/event.proto new file mode 100644 index 0000000..b0c29d7 --- /dev/null +++ b/event.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +package gus; + +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + +message Event { + string hostname = 1; // the hostname of the client + string address = 2; // the IP address from the client + string where = 3; // where gus was sending the client traffic + google.protobuf.Timestamp ctime = 4; // when the socket opened + google.protobuf.Timestamp etime = 5; // when the socket ended +} + +message Events { // `autogenpb:marshal` `autogenpb:gui` `autogenpb:nomutex` + string uuid = 1; // `autogenpb:uuid:4e91f9e6-f545-4c72-bec4-ab951276da1d` + string version = 2; // `autogenpb:version:v0.0.1` + repeated Event events = 3; +} -- cgit v1.2.3