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

Method SetSecretKey

internal/tui/client.go:33–35  ·  view source on GitHub ↗

SetSecretKey updates management API bearer token used by this client.

(secretKey string)

Source from the content-addressed store, hash-verified

31
32// SetSecretKey updates management API bearer token used by this client.
33func (c *Client) SetSecretKey(secretKey string) {
34 c.secretKey = strings.TrimSpace(secretKey)
35}
36
37func (c *Client) doRequest(method, path string, body io.Reader) ([]byte, int, error) {
38 url := c.baseURL + path

Callers 1

connectWithPasswordMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected