MCPcopy Create free account
hub / github.com/Xenov-X/csbot / executeGetTeamserverIp

Method executeGetTeamserverIp

workflow/executor_server.go:252–259  ·  view source on GitHub ↗

executeGetTeamserverIp retrieves the team server IP

(ctx context.Context, client *csclient.Client)

Source from the content-addressed store, hash-verified

250
251// executeGetTeamserverIp retrieves the team server IP
252func (e *Executor) executeGetTeamserverIp(ctx context.Context, client *csclient.Client) (string, error) {
253 e.logInfo("Getting teamserver IP")
254 resp, err := client.GetTeamserverIp(ctx)
255 if err != nil {
256 return "", fmt.Errorf("get teamserver ip failed: %w", err)
257 }
258 return resp, nil
259}

Callers 1

executeActionMethod · 0.95

Calls 1

logInfoMethod · 0.95

Tested by

no test coverage detected