DeriveDaemonActorContext derives one trusted daemon-owned actor context. If originRef is empty, the actor ref is reused as the durable origin ref.
(actorRef string, originRef string)
| 99 | // DeriveDaemonActorContext derives one trusted daemon-owned actor context. If |
| 100 | // originRef is empty, the actor ref is reused as the durable origin ref. |
| 101 | func DeriveDaemonActorContext(actorRef string, originRef string) (ActorContext, error) { |
| 102 | if originRef == "" { |
| 103 | originRef = actorRef |
| 104 | } |
| 105 | return deriveActorContext(ActorKindDaemon, actorRef, OriginKindDaemon, originRef) |
| 106 | } |
| 107 | |
| 108 | func deriveActorContext( |
| 109 | actorKind ActorKind, |