Skip to content

Commit

Permalink
Documenting and regenerating protobuf files
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinMontmirail committed Dec 29, 2023
1 parent 50de860 commit 8d30407
Show file tree
Hide file tree
Showing 8 changed files with 368 additions and 293 deletions.
17 changes: 12 additions & 5 deletions actor/actor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions actor/actor.proto
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
// Define the syntax version for this protobuf file, which is proto3.
syntax = "proto3";

// Specify the package name for the protobuf definitions.
package actor;

// Specify the Go package path for the generated code from this protobuf file.
option go_package = "github.com/anthdm/hollywood/actor";

// Define a message representing a Process Identifier (PID) in the actor system.
message PID {
string address = 1;
string ID = 2;
string address = 1; // The address of the actor (could be a network address or a unique identifier).
string ID = 2; // A unique identifier for the actor within the actor system.
}

// Define a message representing a Ping, used for health checking or connectivity testing in the system.
message Ping {
PID from = 1;
PID from = 1; // The PID of the actor sending the Ping message.
}

// Define a message representing a Pong, which is typically a response to a Ping.
message Pong {
PID from = 1;
PID from = 1; // The PID of the actor sending the Pong message.
}
Loading

0 comments on commit 8d30407

Please sign in to comment.