MCPcopy Create free account
hub / github.com/idank/explainshell / Botshed

Struct Botshed

prod/botshed/module.go:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43const tokenSep = " \t\n\r;|&()<>\"'$`\\"
44
45type 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
61func (*Botshed) CaddyModule() caddy.ModuleInfo {
62 return caddy.ModuleInfo{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected