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

Method PatchAuthFileFields

internal/tui/client.go:176–181  ·  view source on GitHub ↗

PatchAuthFileFields updates editable fields on an auth file.

(name string, fields map[string]any)

Source from the content-addressed store, hash-verified

174
175// PatchAuthFileFields updates editable fields on an auth file.
176func (c *Client) PatchAuthFileFields(name string, fields map[string]any) error {
177 fields["name"] = name
178 body, _ := json.Marshal(fields)
179 _, err := c.patch("/v0/management/auth-files/fields", strings.NewReader(string(body)))
180 return err
181}
182
183// GetLogs fetches log lines from the server.
184func (c *Client) GetLogs(after int64, limit int) ([]string, int64, error) {

Callers 1

handleEditInputMethod · 0.45

Calls 1

patchMethod · 0.95

Tested by

no test coverage detected