Top.Mail.Ru
Tarantool » 2.2 » Tarantool Cartridge » Table of contents » Module cartridge.service-registry
 
Tarantool Cartridge / Table of contents / Module cartridge.service-registry
Tarantool Cartridge / Table of contents / Module cartridge.service-registry

Module cartridge.service-registry

Module cartridge.service-registry

Inter-role interaction.

These functions make different roles interact with each other.

The registry stores initialized modules and accesses them within the one and only current instance. For cross-instance access, use the cartridge.rpc module.

Functions

set (module_name, instance)

Put a module into registry or drop it. This function typically doesn’t need to be called explicitly, the cluster automatically sets all the initialized roles.

Parameters:

Returns:

(nil)

get (module_name)

Get a module from registry.

Parameters:

Returns:

(nil)

Or

(table) instance