github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/actor/actor.proto (about)

     1  syntax = "proto3";
     2  package actor;
     3  option go_package = "github.com/asynkron/protoactor-go/actor";
     4  
     5  message PID {
     6    string Address = 1;
     7    string Id = 2;
     8    uint32 request_id = 3;
     9  }
    10  
    11  //user messages
    12  message PoisonPill {
    13  }
    14  
    15  message DeadLetterResponse {
    16    PID Target = 1;
    17  }
    18  
    19  //system messages
    20  message Watch {
    21    PID Watcher = 1;
    22  }
    23  
    24  message Unwatch {
    25    PID Watcher = 1;
    26  }
    27  
    28  message Terminated {
    29    PID who = 1;
    30    TerminatedReason Why = 2;
    31  }
    32  
    33  enum TerminatedReason {
    34    Stopped = 0;
    35    AddressTerminated = 1;
    36    NotFound = 2;
    37  }
    38  
    39  message Stop {
    40  }
    41  
    42  message Touch {
    43  }
    44  
    45  message Touched {
    46    PID who = 1;
    47  }