func resetSystemUserAction(username string) { m := resetSystemUserJSON{username} jsonStr, err := json.Marshal(m) internal.Check(err) fmt.Print(internal.ReqWant("PUT", http.StatusCreated, "/user/resetsystem", jsonStr)) }
func checkUserAction(username string, fixPrivateTopics, fixDefaultGroup bool) { m := checkUserJSON{username, fixPrivateTopics, fixDefaultGroup} jsonStr, err := json.Marshal(m) internal.Check(err) fmt.Println(internal.ReqWant("PUT", http.StatusCreated, "/user/check", jsonStr)) }
func convertUserAction(username, canWriteNotifications string) { m := convertUserJSON{username, canWriteNotifications} jsonStr, err := json.Marshal(m) internal.Check(err) fmt.Print(internal.ReqWant("PUT", http.StatusCreated, "/user/convert", jsonStr)) }