diff options
| author | Jeff Carr <[email protected]> | 2025-03-10 05:46:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-10 07:59:25 -0500 |
| commit | 2e10a2a0d96da83838dfab34015595b05dcc9058 (patch) | |
| tree | 567cc0e04ef9ae1ef9331074174703bf98de757e /portmap.proto | |
| parent | 8fda4d7c870e36772f1ea0a62179e6e661131b21 (diff) | |
make an event log
Diffstat (limited to 'portmap.proto')
| -rw-r--r-- | portmap.proto | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/portmap.proto b/portmap.proto index 7b29545..ac543e3 100644 --- a/portmap.proto +++ b/portmap.proto @@ -2,27 +2,31 @@ syntax = "proto3"; package gus; +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + message Event { - string hostname = 1; - string version = 2; + 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 { - string uuid = 1; - string version = 2; - repeated Event events = 3; +message Events { // `autogenpb:marshal` `autogenpb:gui` `autogenpb:nomutex` + string uuid = 1; + string version = 2; + repeated Event events = 3; } message Portmap { - int64 listen = 1; // `autogenpb:unique` - string connect = 2; // `autogenpb:unique` - bool enabled = 3; - string uuid = 4; + int64 listen = 1; // `autogenpb:unique` + string connect = 2; // `autogenpb:unique` + bool enabled = 3; + string uuid = 4; } -message Portmaps { // `autogenpb:marshal` `autogenpb:gui` `autogenpb:nomutex` - string uuid = 1; // `autogenpb:uuid:49a865ea-292d-48fd-8dc2-d0f82d5fd016` - string version = 2; // `autogenpb:version:v0.0.1` - repeated Portmap portmaps = 3; - Events events = 4; +message Portmaps { // `autogenpb:marshal` `autogenpb:gui` `autogenpb:nomutex` + string uuid = 1; // `autogenpb:uuid:49a865ea-292d-48fd-8dc2-d0f82d5fd016` + string version = 2; // `autogenpb:version:v0.0.1` + repeated Portmap portmaps = 3; } |
