Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 226 for callback (0.21 sec)

  1. callbacks.go

    	var callbacks []*callback
    	removedMap := map[string]bool{}
    	for _, callback := range p.callbacks {
    		if callback.match == nil || callback.match(p.db) {
    			callbacks = append(callbacks, callback)
    		}
    		if callback.remove {
    			removedMap[callback.name] = true
    		}
    	}
    
    	if len(removedMap) > 0 {
    		callbacks = removeCallbacks(callbacks, removedMap)
    	}
    	p.callbacks = callbacks
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 8.6K bytes
    - Viewed (1)
  2. tests/callbacks_test.go

    		},
    		{
    			callbacks: []callback{{h: c1}, {h: c2}, {h: c3}, {h: c4}, {h: c5, before: "c4"}},
    			results:   []string{"c1", "c2", "c3", "c5", "c4"},
    		},
    		{
    			callbacks: []callback{{h: c1}, {h: c2}, {h: c3}, {h: c4, after: "c5"}, {h: c5}},
    			results:   []string{"c1", "c2", "c3", "c5", "c4"},
    		},
    		{
    			callbacks: []callback{{h: c1}, {h: c2}, {h: c3}, {h: c4, after: "c5"}, {h: c5, before: "c4"}},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/openapi-callbacks.md

    ### Einen Callback-`APIRouter` erstellen
    
    Erstellen Sie zunächst einen neuen `APIRouter`, der einen oder mehrere Callbacks enthält.
    
    ```Python hl_lines="3  25"
    {!../../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    ### Die Callback-*Pfadoperation* erstellen
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:23 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/openapi-callbacks.md

    Now use the parameter `callbacks` in *your API's path operation decorator* to pass the attribute `.routes` (that's actually just a `list` of routes/*path operations*) from that callback router:
    
    ```Python hl_lines="35"
    {!../../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/openapi-callbacks.md

    ⚫️ 🔜 ✔️ *➡ 🛠️* 👈 🔜 📨 `Invoice` 💪, & 🔢 🔢 `callback_url` 👈 🔜 🔌 📛 ⏲.
    
    👉 🍕 📶 😐, 🌅 📟 🎲 ⏪ 😰 👆:
    
    ```Python hl_lines="9-13  36-53"
    {!../../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    !!! tip
         `callback_url` 🔢 🔢 ⚙️ Pydantic <a href="https://docs.pydantic.dev/latest/concepts/types/#urls" class="external-link" target="_blank">📛</a> 🆎.
    
    🕴 🆕 👜 `callbacks=messages_callback_router.routes` ❌ *➡ 🛠️ 👨‍🎨*. 👥 🔜 👀 ⚫️❔ 👈 ⏭.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  6. docs/zh/docs/advanced/openapi-callbacks.md

    ### 添加回调路由
    
    至此,在上文创建的回调路由里就包含了*回调路径操作*(外部开发者要在外部 API 中实现)。
    
    现在使用 API *路径操作装饰器*的参数 `callbacks`,从回调路由传递属性 `.routes`(实际上只是路由/路径操作的**列表**):
    
    ```Python hl_lines="36"
    {!../../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    !!! tip "提示"
    
        注意,不能把路由本身(`invoices_callback_router`)传递给 `callback=`,要传递 `invoices_callback_router.routes` 中的 `.routes` 属性。
    
    ### 查看文档
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:46:28 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/config/cbean/ca/bs/BsElevateWordCA.java

            if (queryLambda != null) {
                queryLambda.callback(cq);
            }
            FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
            if (opLambda != null) {
                opLambda.callback(builder);
            }
            if (aggsLambda != null) {
                ElevateWordCA ca = new ElevateWordCA();
                aggsLambda.callback(ca);
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 54.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/config/cbean/cq/bs/BsKeyMatchCQ.java

            KeyMatchCQ cq = new KeyMatchCQ();
            queryLambda.callback(cq);
            final Collection<FilterFunctionBuilder> list = new ArrayList<>();
            if (functionsLambda != null) {
                functionsLambda.callback((cqLambda, scoreFunctionBuilder) -> {
                    KeyMatchCQ cf = new KeyMatchCQ();
                    cqLambda.callback(cf);
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 68.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/config/cbean/ca/bs/BsRelatedQueryCA.java

            if (queryLambda != null) {
                queryLambda.callback(cq);
            }
            FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
            if (opLambda != null) {
                opLambda.callback(builder);
            }
            if (aggsLambda != null) {
                RelatedQueryCA ca = new RelatedQueryCA();
                aggsLambda.callback(ca);
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 46.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/log/cbean/ca/bs/BsClickLogCA.java

            if (queryLambda != null) {
                queryLambda.callback(cq);
            }
            FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
            if (opLambda != null) {
                opLambda.callback(builder);
            }
            if (aggsLambda != null) {
                ClickLogCA ca = new ClickLogCA();
                aggsLambda.callback(ca);
                ca.getAggregationBuilderList().forEach(builder::subAggregation);
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 45.5K bytes
    - Viewed (0)
Back to top