Search Options

Results per page
Sort
Preferred Languages
Advance

Results 3561 - 3570 of 3,913 for getT (0.03 sec)

  1. docs/zh/docs/tutorial/dependencies/index.md

    首先,要关注的是依赖项。
    
    依赖项就是一个函数,且可以使用与*路径操作函数*相同的参数:
    
    ```Python hl_lines="8-11"
    {!../../docs_src/dependencies/tutorial001.py!}
    ```
    
    大功告成。
    
    只用了**2 行**代码。
    
    依赖项函数的形式和结构与*路径操作函数*一样。
    
    因此,可以把依赖项当作没有「装饰器」(即,没有 `@app.get("/some-path")` )的路径操作函数。
    
    依赖项可以返回各种内容。
    
    本例中的依赖项预期接收如下参数:
    
    * 类型为 `str` 的可选查询参数 `q`
    * 类型为 `int` 的可选查询参数 `skip`,默认值是 `0`
    * 类型为 `int` 的可选查询参数 `limit`,默认值是 `100`
    
    然后,依赖项函数返回包含这些值的 `dict`。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. cmd/prepare-storage.go

    	files, _ := filepath.Glob(filepath.Join(diskPath, ".writable-check-*.tmp"))
    	for _, file := range files {
    		go removeAll(file)
    	}
    
    	// Remove the entire folder in case there are leftovers that didn't get cleaned up before restart.
    	go removeAll(pathJoin(diskPath, minioMetaTmpBucket+"-old"))
    
    	// Renames and schedules for purging all bucket metacache.
    	go renameAllBucketMetacache(diskPath)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. internal/event/target/kafka.go

    func (target *KafkaTarget) SendFromStore(key store.Key) (err error) {
    	if err = target.init(); err != nil {
    		return err
    	}
    	switch {
    	case key.ItemCount == 1:
    		var event event.Event
    		event, err = target.store.Get(key)
    		if err != nil {
    			// The last event key in a successful batch will be sent in the channel atmost once by the replayEvents()
    			// Such events will not exist and wouldve been already been sent successfully.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. internal/dsync/dsync_test.go

    	}
    
    	unlockReturned := make(chan struct{}, 1)
    	go func() {
    		ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
    		defer cancel()
    		dm.Unlock(ctx)
    		// Unlock is not blocking. Try to get a new lock.
    		dm.GetLock(ctx, nil, id, source, Options{Timeout: 5 * time.Minute})
    		unlockReturned <- struct{}{}
    	}()
    
    	timer := time.NewTimer(2 * testDrwMutexUnlockCallTimeout)
    	defer timer.Stop()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:35:19 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

          }
    
          Set<E> seen = new HashSet<>();
          List<Entry<E>> order = new ArrayList<>();
          for (E e : gen.order(new ArrayList<E>(map.keySet()))) {
            if (seen.add(e)) {
              order.add(map.get(e));
            }
          }
          return order;
        }
      }
    
      static class ReserializedMultisetGenerator<E> implements TestMultisetGenerator<E> {
        final OneSizeTestContainerGenerator<Collection<E>, E> gen;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. cmd/bootstrap-peer-server.go

    		// differently on each nodes, update skipEnvs()
    		// map if there are such environment values
    		if _, ok := skipEnvs[envK]; ok {
    			continue
    		}
    		envValues[envK] = logger.HashString(env.Get(envK, ""))
    	}
    	scfg := &ServerSystemConfig{NEndpoints: globalEndpoints.NEndpoints(), MinioEnv: envValues, Checksum: binaryChecksum}
    	var cmdLines []string
    	for _, ep := range globalEndpoints {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. docs/sts/keycloak.md

    The following example shows how to get the details of the user with `{userid}` from `{realm}` realm:
    
    ```
    curl \
      -H "Authorization: Bearer eyJhbGciOiJSUz..." \
      "http://localhost:8080/auth/admin/realms/{realm}/users/{userid}"
    ```
    
    ### Configure MinIO
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/dependencies/index.md

    ```Python hl_lines="6-7"
    {!> ../../docs_src/dependencies/tutorial001_py310.py!}
    ```
    
    ////
    
    👈 ⚫️.
    
    **2️⃣ ⏸**.
    
    &amp; ⚫️ ✔️ 🎏 💠 &amp; 📊 👈 🌐 👆 *➡ 🛠️ 🔢* ✔️.
    
    👆 💪 💭 ⚫️ *➡ 🛠️ 🔢* 🍵 "👨‍🎨" (🍵 `@app.get("/some-path")`).
    
    &amp; ⚫️ 💪 📨 🕳 👆 💚.
    
    👉 💼, 👉 🔗 ⌛:
    
    * 📦 🔢 🔢 `q` 👈 `str`.
    * 📦 🔢 🔢 `skip` 👈 `int`, &amp; 🔢 `0`.
    * 📦 🔢 🔢 `limit` 👈 `int`, &amp; 🔢 `100`.
    
    &amp; ⤴️ ⚫️ 📨 `dict` ⚗ 📚 💲.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_body/test_tutorial001.py

            response = client.post("/items/", json={"test": "test2"})
            assert response.status_code == 400, response.text
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_body/test_tutorial001_py310.py

            response = client.post("/items/", json={"test": "test2"})
            assert response.status_code == 400, response.text
    
    
    @needs_py310
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top