Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 561 - 570 of 725 for limitTo (0.07 seconds)

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

    依赖项函数的形式和结构与*路径操作函数*一样。
    
    因此,可以把依赖项当作没有「装饰器」(即,没有 `@app.get("/some-path")` )的路径操作函数。
    
    依赖项可以返回各种内容。
    
    本例中的依赖项预期接收如下参数:
    
    * 类型为 `str` 的可选查询参数 `q`
    * 类型为 `int` 的可选查询参数 `skip`,默认值是 `0`
    * 类型为 `int` 的可选查询参数 `limit`,默认值是 `100`
    
    然后,依赖项函数返回包含这些值的 `dict`。
    
    ### 导入 `Depends`
    
    {* ../../docs_src/dependencies/tutorial001.py hl[3] *}
    
    ### 声明依赖项
    
    与在*路径操作函数*参数中使用 `Body`、`Query` 的方式相同,声明依赖项需要使用 `Depends` 和一个新的参数:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 7K bytes
    - Click Count (0)
  2. cmd/erasure-healing-common.go

    			for k := range timeOccurrenceMap {
    				if k == nano {
    					// We add to ourself later
    					continue
    				}
    				diff := k - nano
    				if diff < 0 {
    					diff = -diff
    				}
    				// We are within the limit
    				if diff < groupNano {
    					timeOccurrenceMap[k]++
    				}
    			}
    		}
    		// Add ourself...
    		timeOccurrenceMap[nano]++
    	}
    
    	maxima = 0 // Counter for remembering max occurrence of elements.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 12K bytes
    - Click Count (0)
  3. internal/event/target/kafka.go

    		loggerOnce: loggerOnce,
    		quitCh:     make(chan struct{}),
    	}
    	if target.store != nil {
    		if args.BatchSize > 1 {
    			target.batch = store.NewBatch[event.Event](store.BatchConfig[event.Event]{
    				Limit:         args.BatchSize,
    				Log:           loggerOnce,
    				Store:         queueStore,
    				CommitTimeout: args.BatchCommitTimeout,
    			})
    		}
    		store.StreamItems(target.store, target, target.quitCh, target.loggerOnce)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Sep 06 23:06:30 GMT 2024
    - 13.6K bytes
    - Click Count (0)
  4. internal/lock/lock_windows.go

    	}
    	return lockedOpenFile(path, flag, perm, lockType)
    }
    
    // fixLongPath returns the extended-length (\\?\-prefixed) form of
    // path when needed, in order to avoid the default 260 character file
    // path limit imposed by Windows. If path is not easily converted to
    // the extended-length form (for example, if path is a relative path
    // or contains .. elements), or is short enough, fixLongPath returns
    // path unmodified.
    //
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  5. internal/hash/reader.go

    // callers to indicate if they want to disable md5sum checksum.
    func NewReaderWithOpts(ctx context.Context, src io.Reader, opts Options) (*Reader, error) {
    	// return hard limited reader
    	return newReader(ctx, src, opts.Size, opts.MD5Hex, opts.SHA256Hex, opts.ActualSize, opts.DisableMD5, opts.ForceMD5)
    }
    
    // NewReader returns a new Reader that wraps src and computes
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Jun 25 15:08:54 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  6. docs/ru/docs/tutorial/dependencies/index.md

    В этом случае эта зависимость ожидает:
    
    * Необязательный query-параметр `q` типа `str`.
    * Необязательный query-параметр `skip` типа `int`, по умолчанию `0`.
    * Необязательный query-параметр `limit` типа `int`, по умолчанию `100`.
    
    А затем просто возвращает `dict`, содержащий эти значения.
    
    /// info | Информация
    
    FastAPI добавил поддержку `Annotated` (и начал рекомендовать его использование) в версии 0.95.0.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 15.4K bytes
    - Click Count (1)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

         * </ul>
         * <p>
         * The active profiles control various aspects of the build configuration including but not
         * limited to dependencies, plugins, properties, and build resources.
         *
         * @return a non-null, possibly empty list of active profiles for this project
         * @see Profile
         * @see #getEffectiveActiveProfiles()
         */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/dependencies/index.md

    Neste caso, a dependência espera por:
    
    * Um parâmetro de consulta opcional `q` do tipo `str`.
    * Um parâmetro de consulta opcional `skip` do tipo `int`, e igual a `0` por padrão.
    * Um parâmetro de consulta opcional `limit` do tipo `int`, e igual a `100` por padrão.
    
    E então retorna um `dict` contendo esses valores.
    
    /// info | Informação
    
    FastAPI passou a suportar a notação `Annotated` (e começou a recomendá-la) na versão 0.95.0.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  9. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        }.also { expected ->
          assertThat(expected.message).isEqualTo("enclosed object too large")
        }
      }
    
      /** Object identifiers are nominally self-delimiting. Outrun the limit with one. */
      @Test fun `variable length long outruns limit`() {
        val bytes = "060229ffffff7f".decodeHex()
        assertFailsWith<ProtocolException> {
          Adapters.OBJECT_IDENTIFIER.fromDer(bytes)
        }.also { expected ->
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 31.7K bytes
    - Click Count (0)
  10. docs/es/docs/deployment/docker.md

    ejecutas **un solo proceso por contenedor**, tendrás una cantidad de memoria más o menos bien definida, estable y limitada consumida por cada uno de esos contenedores (más de uno si están replicados).
    
    Y luego puedes establecer esos mismos límites de memoria y requisitos en tus configuraciones para tu sistema de gestión de contenedores (por ejemplo, en **Kubernetes**). De esa manera, podrá **replicar los contenedores** en las **máquinas disponibles** teniendo en cuenta la cantidad de memoria...
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 32K bytes
    - Click Count (0)
Back to Top