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

Struct CounterActor

pkg/actor/actor_test.go:52–54  ·  view source on GitHub ↗

CounterActor 计数器 Actor

Source from the content-addressed store, hash-verified

50
51// CounterActor 计数器 Actor
52type CounterActor struct {
53 count int64
54}
55
56func (a *CounterActor) Receive(ctx *Context, msg Message) {
57 switch m := msg.(type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected