You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

exec.go 200 B

12345678910111213141516
  1. package exec
  2. import (
  3. "context"
  4. )
  5. type PlanID string
  6. type Plan struct {
  7. ID PlanID `json:"id"`
  8. Ops []Op `json:"ops"`
  9. }
  10. type Op interface {
  11. Execute(ctx context.Context, sw *Executor) error
  12. }