Skip to content

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

Draft
wants to merge 1 commit into
base: latest
Choose a base branch
from

Conversation

georgiy-belyanin
Copy link
Member

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.

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.
@georgiy-belyanin
Copy link
Member Author


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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: stoarge -> storage.

Comment on lines +381 to +388
.. 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
Copy link
Member

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
Copy link
Member

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:**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: exapmle -> example.

Comment on lines +72 to +73
* - :ref:`config.storage_client:connect() <config_storage_client_api_reference_connect>`
- Connect to a remote config.storage cluster
Copy link
Member

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.

Copy link
Member

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants