MCPcopy Create free account
hub / github.com/astercloud/aster / EchoActor

Struct EchoActor

examples/actor/main.go:115–117  ·  view source on GitHub ↗

============================================================================= Actor 实现 ============================================================================= EchoActor 回声 Actor - 收到 Ping 回复 Pong

Source from the content-addressed store, hash-verified

113
114// EchoActor 回声 Actor - 收到 Ping 回复 Pong
115type EchoActor struct {
116 name string
117}
118
119func (a *EchoActor) Receive(ctx *actor.Context, msg actor.Message) {
120 switch m := msg.(type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected