()
| 45 | ) |
| 46 | |
| 47 | func (s hookStage) String() string { |
| 48 | switch s { |
| 49 | case hookOnLoad: |
| 50 | return "on_load" |
| 51 | case hookPreEval: |
| 52 | return "pre_eval" |
| 53 | case hookPostEval: |
| 54 | return "post_eval" |
| 55 | case hookOnMatch: |
| 56 | return "on_match" |
| 57 | default: |
| 58 | return "unknown" |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // PhaseHooks bundles the three phase-scoped hook lists (pre_eval, post_eval, |
| 63 | // on_match) that run during request evaluation. OnLoad is excluded because it |
no outgoing calls