MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / persist

Method persist

internal/api/handlers/management/handler.go:400–404  ·  view source on GitHub ↗

persist saves the current in-memory config to disk.

(c *gin.Context)

Source from the content-addressed store, hash-verified

398
399// persist saves the current in-memory config to disk.
400func (h *Handler) persist(c *gin.Context) bool {
401 h.mu.Lock()
402 defer h.mu.Unlock()
403 return h.persistLocked(c)
404}
405
406// persistLocked saves the current in-memory config to disk.
407// It expects the caller to hold h.mu.

Callers 15

PutLogsMaxTotalSizeMBMethod · 0.95
PutErrorLogsMaxFilesMethod · 0.95
PutRoutingStrategyMethod · 0.95
DeleteProxyURLMethod · 0.95
updateBoolFieldMethod · 0.95
updateIntFieldMethod · 0.95
updateStringFieldMethod · 0.95
putStringListMethod · 0.95
patchStringListMethod · 0.95
deleteFromStringListMethod · 0.95

Calls 1

persistLockedMethod · 0.95

Tested by

no test coverage detected