Skip to content

Document box.iproto.export() #5640

@TarantoolBot

Description

@TarantoolBot

Since: 3.7

It is now possible to expose a Lua function to IPROTO_CALL requests
without polluting the global Lua namespace:

box.iproto.export('echo', function(...) return ... end)

The IPROTO_CALL request handler first looks up the function name
among all functions exported with box.iproto.export(), then falls
back on searching in _G if not found.

box.iproto.export() may be called both before and after box.cfg().
Requested by @locker in tarantool/tarantool@897e94f.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions