- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for mainHandler (0.19 sec)
-
docs/iam/identity-manager-plugin.go
}, }, "bbb": { User: "Bart", MaxValiditySeconds: 3600, Claims: map[string]interface{}{ "groups": []string{"databases"}, }, }, } func mainHandler(w http.ResponseWriter, r *http.Request) { token := r.FormValue("token") if token == "" { writeErrorResponse(w, errors.New("token parameter not given")) return } rsp, ok := tokens[token] if !ok {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri May 27 00:58:09 GMT 2022 - 2.1K bytes - Viewed (0) -
docs/iam/access-manager-plugin.go
w.WriteHeader(http.StatusBadRequest) json.NewEncoder(w).Encode(map[string]string{ "error": fmt.Sprintf("%v", err), }) } type Result struct { Result bool `json:"result"` } func mainHandler(w http.ResponseWriter, r *http.Request) { body, err := io.ReadAll(r.Body) if err != nil { writeErrorResponse(w, err) return } var out bytes.Buffer json.Indent(&out, body, "", " ")
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Feb 08 17:15:20 GMT 2024 - 2.7K bytes - Viewed (0)