Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
ea8a03d7
Commit
ea8a03d7
authored
9 years ago
by
ocelot-inc
Browse files
Options
Downloads
Patches
Plain Diff
change console, add fun
parent
f914ed4a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/sphinx/reference/console.rst
+8
-9
8 additions, 9 deletions
doc/sphinx/reference/console.rst
doc/sphinx/reference/fun.rst
+35
-0
35 additions, 0 deletions
doc/sphinx/reference/fun.rst
doc/sphinx/reference/index.rst
+1
-0
1 addition, 0 deletions
doc/sphinx/reference/index.rst
with
44 additions
and
9 deletions
doc/sphinx/reference/console.rst
+
8
−
9
View file @
ea8a03d7
...
...
@@ -50,23 +50,22 @@ host/port.
...
198.18.44.44:3301> -- prompt is telling us that server is remote
.. function:: listen(
host, port
)
.. function:: listen(
URI
)
Listen on
host:port
. The primary way of listening for incoming requests
is via the
host and port
, or :ref:`URI`, specified in ``box.cfg{listen=...}``.
The alternative way of listening is via the
host and port, or
URI
,
Listen on
URI
. The primary way of listening for incoming requests
is via the
connection-information string
, or :ref:`URI`, specified in ``box.cfg{listen=...}``.
The alternative way of listening is via the URI
specified in ``console.listen(...)``. This alternative way is called
"administrative" or simply "admin port".
The listening is usually over a local host with a Unix socket,
specified
as
host = 'unix/', port = 'path/to/something.sock'.
specified
with
host = 'unix/', port = 'path/to/something.sock'.
:param string host:
:param number port:
:param string uri:
The "admin" address is the
port or
:ref:`URI` to listen on for administrative
The "admin" address is the :ref:`URI` to listen on for administrative
connections. It has no default value, so it must be specified if
connections will occur via telnet. It is not used unless assigned a
value. The parameters
may b
e expressed with :ref:`URI` = Universal Resource
value. The parameters
ar
e expressed with :ref:`URI` = Universal Resource
Identifier format, for example "unix://unix_domain_socket", or as a
numeric TCP port. Connections are often made with telnet.
A typical port value is 3313.
This diff is collapsed.
Click to expand it.
doc/sphinx/reference/fun.rst
0 → 100644
+
35
−
0
View file @
ea8a03d7
-------------------------------------------------------------------------------
Package `fun`
-------------------------------------------------------------------------------
Lua fun, also known as the Lua Functional Library, takes advantage
of the features of LuaJIT to help users create complex functions.
Inside the package are "sequence processors" such as
map, filter, reduce, zip -- they take a user-written function as
an argument and run it against every element in a sequence, which
can be faster or more convenient than a user-written loop.
Inside the package are "generators" such as range, tabulate, and
rands -- they return a bounded or boundless series of values.
Within the package are "reducers", "filters", "composers" ...
or, in short, all the important features found in languages like
Standard ML, Haskell, or Erlang.
The full documentation is `On the luafun section of github`_.
However, the first chapter can be skipped because installation
is already done, it's inside Tarantool. All that is needed is the usual require request.
After that, all the operations described in the
Lua fun manual will work, provided they are preceded by the
name returned by the require request.
For example:
.. code-block:: lua
localhost> fun = require('fun')
localhost> for _k, a in fun.range(3) do print(a) end
1
2
3
---
...
.. _On the luafun section of github: http://rtsisyk.github.io/luafun
This diff is collapsed.
Click to expand it.
doc/sphinx/reference/index.rst
+
1
−
0
View file @
ea8a03d7
...
...
@@ -19,6 +19,7 @@
console
log
tap
fun
pickle
other
expirationd
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment