============================================================================= Actor 实现 ============================================================================= EchoActor 回声 Actor - 收到 Ping 回复 Pong
| 113 | |
| 114 | // EchoActor 回声 Actor - 收到 Ping 回复 Pong |
| 115 | type EchoActor struct { |
| 116 | name string |
| 117 | } |
| 118 | |
| 119 | func (a *EchoActor) Receive(ctx *actor.Context, msg actor.Message) { |
| 120 | switch m := msg.(type) { |
nothing calls this directly
no outgoing calls
no test coverage detected