MCPcopy
hub / github.com/caddyserver/caddy / Delete

Method Delete

replacer.go:118–122  ·  view source on GitHub ↗

Delete removes a variable with a static value that was created using Set.

(variable string)

Source from the content-addressed store, hash-verified

116// Delete removes a variable with a static value
117// that was created using Set.
118func (r *Replacer) Delete(variable string) {
119 r.mapMutex.Lock()
120 delete(r.static, variable)
121 r.mapMutex.Unlock()
122}
123
124// DeleteByPrefix removes all static variables with
125// keys starting with the given prefix

Callers 15

TestReplacerDeleteFunction · 0.95
CloseMethod · 0.45
closeLogsMethod · 0.45
CloseMethod · 0.45
CloseMethod · 0.45
CloseMethod · 0.45
CloseMethod · 0.45
CleanupMethod · 0.45
rotateECHKeysMethod · 0.45
loadECHConfigFunction · 0.45
adminHandlerFixtureFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestReplacerDeleteFunction · 0.76
adminHandlerFixtureFunction · 0.36