actor.go 243 B

123456789101112
  1. package ruleEngine
  2. import "sparrow/pkg/protocol"
  3. // Actor interface
  4. type Actor interface {
  5. GetActorRef() Ref
  6. Init(ctx Ctx) error
  7. Process(msg protocol.ActorMsg) error
  8. Destroy() error
  9. OnProcessFailure(err error) *ProcessFailureStrategy
  10. }