minos.networks.discovery.connectors module

class minos.networks.discovery.connectors.DiscoveryConnector(client, name, host, port, endpoints, *args, **kwargs)[source]

Bases: minos.common.setup.MinosSetup

Discovery Connector class.

__init__(client, name, host, port, endpoints, *args, **kwargs)[source]
property already_destroyed: bool

Already Destroy getter.

Return type

bool

Returns

A boolean value.

property already_setup: bool

Already Setup getter.

Return type

bool

Returns

A boolean value.

async destroy()

Destroy miscellaneous repository things.

Return type

None

Returns

This method does not return anything.

classmethod from_config(config=None, **kwargs)

Build a new instance from config.

Parameters
  • config (typing.Union[minos.common.configuration.config.MinosConfig, pathlib.Path, None]) – Config instance. If None is provided, default config is chosen.

  • kwargs – Additional named arguments.

Return type

~S

Returns

A instance of the called class.

async setup()

Setup miscellaneous repository things.

Return type

None

Returns

This method does not return anything.

async subscribe()[source]

Send a subscribe operation to the discovery.

Return type

None

Returns

This method does not return anything.

async unsubscribe()[source]

Send an unsubscribe operation to the discovery.

Return type

None

Returns

This method does not return anything.