| 43 | const tokenSep = " \t\n\r;|&()<>\"'$`\\" |
| 44 | |
| 45 | type Botshed struct { |
| 46 | DBPath string `json:"db_path"` |
| 47 | Upstream string `json:"upstream"` |
| 48 | |
| 49 | basenames atomic.Pointer[map[string]struct{}] |
| 50 | canned atomic.Pointer[[][]byte] |
| 51 | |
| 52 | // Counts requests that arrived before both loaders finished, plus a |
| 53 | // one-shot flag so we log the boot-window total exactly once when we |
| 54 | // first observe both loaders ready. |
| 55 | bootPassthroughs atomic.Uint64 |
| 56 | readyLogged atomic.Bool |
| 57 | |
| 58 | logger *zap.Logger |
| 59 | } |
| 60 | |
| 61 | func (*Botshed) CaddyModule() caddy.ModuleInfo { |
| 62 | return caddy.ModuleInfo{ |
nothing calls this directly
no outgoing calls
no test coverage detected