[Groonga-commit] droonga/droonga.org at ea5b105 [gh-pages] Add descriptions about outgoing messages' "type"

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Feb 7 19:26:58 JST 2014


YUKI Hiroshi	2014-02-07 19:26:58 +0900 (Fri, 07 Feb 2014)

  New Revision: ea5b105281d40ecb0bdb81bc85918bfaadbb1d26
  https://github.com/droonga/droonga.org/commit/ea5b105281d40ecb0bdb81bc85918bfaadbb1d26

  Message:
    Add descriptions about outgoing messages' "type"

  Modified files:
    tutorial/plugin-development/adapter/index.md

  Modified: tutorial/plugin-development/adapter/index.md (+4 -0)
===================================================================
--- tutorial/plugin-development/adapter/index.md    2014-02-07 19:14:50 +0900 (0faff52)
+++ tutorial/plugin-development/adapter/index.md    2014-02-07 19:26:58 +0900 (781c30d)
@@ -404,6 +404,8 @@ And you will see the result on fluentd's log:
 
 Now we can perform store search with simple requests.
 
+Note: look at the `"type"` of the response message. Now it became `"storeSearch.result"`, from `"search.result"`. Because it is triggered from the incoming message with the type `"storeSearch"`, the outgoing message has the type `"(incoming command).result"` automatically. In other words, you don't have to change the type of the outgoing messages, like `input_message.command = "search"` in the method `adapt_input`.
+
 ### Return simple response
 
 Second, let's return results in more simple way: just an array of the names of stores.
@@ -434,6 +436,8 @@ module Droonga
 (snip)
 ~~~
 
+The `adapt_output` method receives outgoing messages only corresponding to the incoming messages processed by the `adapt_input` method.
+
 Then restart fluentd. Send the request:
 
     cat store-search-columbus.json | tr -d "\n" | fluent-cat starbucks.message
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index