github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/remote/messages.go (about) 1 package remote 2 3 import "github.com/asynkron/protoactor-go/actor" 4 5 type EndpointTerminatedEvent struct { 6 Address string 7 } 8 9 type EndpointConnectedEvent struct { 10 Address string 11 } 12 13 type remoteWatch struct { 14 Watcher *actor.PID 15 Watchee *actor.PID 16 } 17 18 type remoteUnwatch struct { 19 Watcher *actor.PID 20 Watchee *actor.PID 21 } 22 23 type remoteDeliver struct { 24 header actor.ReadonlyMessageHeader 25 message interface{} 26 target *actor.PID 27 sender *actor.PID 28 serializerID int32 29 } 30 31 type remoteTerminate struct { 32 Watcher *actor.PID 33 Watchee *actor.PID 34 } 35 36 type JsonMessage struct { 37 TypeName string 38 Json string 39 } 40 41 var stopMessage interface{} = &actor.Stop{} 42 43 var ( 44 ActorPidRespErr interface{} = &ActorPidResponse{StatusCode: ResponseStatusCodeERROR.ToInt32()} 45 ActorPidRespTimeout interface{} = &ActorPidResponse{StatusCode: ResponseStatusCodeTIMEOUT.ToInt32()} 46 ActorPidRespUnavailable interface{} = &ActorPidResponse{StatusCode: ResponseStatusCodeUNAVAILABLE.ToInt32()} 47 ) 48 49 type ( 50 // Ping is message sent by the actor system to probe an actor is started. 51 Ping struct{} 52 53 // Pong is response for ping. 54 Pong struct{} 55 )