OT.Server
is an application that manages the correct handling of submitted
operations in an operational transformation system. It ships with an adapter
for persisting data to ETS, but implementing new adapters is simple.
For more detailed information about operational transformation, see the documentation for ot_ex and the various links therein.
The package can be installed by adding ot_server
to your list of dependencies
in mix.exs
:
def deps do
[
{:ot_server, "~> 0.1.0"}
]
end
Implement an adapter as per OT.Server.Adapter
and configure it as the adapter
for the :ot_server
application:
config :ot_server,
adapter: MyOTAdapter,
max_retries: 25,
ot_types: %{"text" => OT.Text}
For an example of how an adapter can be created, see OT.Server.ETSAdapter
.
adapter
: The OT.Server.Adapter
that OT.Server
will use to interact withmax_retries
: The number of times a submission will be attempted before itot_types
: A map with string keys pointing to modules that implementOT.Type
.