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

Method ToggleAuthFile

internal/tui/client.go:169–173  ·  view source on GitHub ↗

ToggleAuthFile enables or disables an auth file.

(name string, disabled bool)

Source from the content-addressed store, hash-verified

167
168// ToggleAuthFile enables or disables an auth file.
169func (c *Client) ToggleAuthFile(name string, disabled bool) error {
170 body, _ := json.Marshal(map[string]any{"name": name, "disabled": disabled})
171 _, err := c.patch("/v0/management/auth-files/status", strings.NewReader(string(body)))
172 return err
173}
174
175// PatchAuthFileFields updates editable fields on an auth file.
176func (c *Client) PatchAuthFileFields(name string, fields map[string]any) error {

Callers 1

handleNormalInputMethod · 0.80

Calls 1

patchMethod · 0.95

Tested by

no test coverage detected