-
Notifications
You must be signed in to change notification settings - Fork 43
Add config.storage_client
documentation [WIP]
#4734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: latest
Are you sure you want to change the base?
Add config.storage_client
documentation [WIP]
#4734
Conversation
This patch adds documentation for the `config.storage_client` module. The module allows one to connect to a remote config.storage cluster and use it as a key-value storage. Examples for working both with Tarantool config.storage server and Tarantool config.storage client are provided side by side since they share quite the same API.
Note, that README should also be updated. https://github.com/tarantool/tarantool/tree/master/doc/examples/config/config-storage |
|
||
Put a value by the specified path. | ||
The ``config.stoarge_client`` API allows you to connect to a remote replica set :ref:`configured as a Tarantool-based centralized configuration storage <centralized_configuration_set_up_tarantool>` and interact with it as a key-value storage, see Client API examples below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: stoarge -> storage.
.. function:: connect(endpoints[, options]) | ||
|
||
Connect to a remote config.storage cluster. | ||
|
||
:param table endpoints: a path to put the value by | ||
:param table options: extra options | ||
|
||
:return: a <config.storage object> object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:param table endpoints: a path to put the value by
Seems incorrect.
:param table options: extra options
Extra comparing to what?
|
||
Get a value stored by the specified path or prefix. | ||
* ``recvision``: a revision after performing the operation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: recvision -> revision.
|
||
* ``revision``: a revision after performing the operation | ||
**Client API exapmle:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: exapmle -> example.
* - :ref:`config.storage_client:connect() <config_storage_client_api_reference_connect>` | ||
- Connect to a remote config.storage cluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be a module function, not an object method?
It seems it also called this way in myapp_client.lua
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the following methods are missed:
:close()
:is_closed()
:watch()
:on_disconnect()
:is_connected()
This patch adds documentation for the
config.storage_client
module. The module allows one to connect to a remote config.storage cluster and use it as a key-value storage.Examples for working both with Tarantool config.storage server API and Tarantool config.storage client API are provided side by side since they share quite the same API.