FindCheckpoint find a check point
(prefix string)
| 350 | |
| 351 | // FindCheckpoint find a check point |
| 352 | func FindCheckpoint(prefix string) CheckpointInterface { |
| 353 | for _, def := range AllCheckpoints { |
| 354 | if def.Prefix == prefix { |
| 355 | def.Instance.SetPriority(def.Priority) |
| 356 | return def.Instance |
| 357 | } |
| 358 | } |
| 359 | return nil |
| 360 | } |
| 361 | |
| 362 | // FindCheckpointDefinition find a check point definition |
| 363 | func FindCheckpointDefinition(prefix string) *CheckpointDefinition { |