MCPcopy Create free account
hub / github.com/Quorinex/Kiro-Go / apiGenerateMachineId

Method apiGenerateMachineId

proxy/handler.go:3129–3132  ·  view source on GitHub ↗

apiGenerateMachineId 生成新的机器码

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

3127 w.WriteHeader(http.StatusBadRequest)
3128 json.NewEncoder(w).Encode(map[string]string{"error": "Microsoft profile selection not found or expired"})
3129 return
3130 }
3131
3132 selection.mu.Lock()
3133 if selection.canceled.Load() || !time.Now().Before(selection.ExpiresAt) {
3134 selection.mu.Unlock()
3135 h.removeMicrosoftProfileSelection(selectionID, selection)

Callers 1

handleAdminAPIMethod · 0.95

Calls 1

GenerateMachineIdFunction · 0.92

Tested by

no test coverage detected