Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listener control without service restart #410

Merged
merged 16 commits into from
Mar 21, 2023

Conversation

martinkersner
Copy link
Member

@martinkersner martinkersner commented Mar 18, 2023

Description

This PR includes a new auxiliary service called watchman to every listener. watchman creates a REST API to control the state of listener. watchman allows to

  • list all listeners for specific service
  • list active listeners (currently listening)
  • activate listener
  • deactivate listener

Listener state can be controlled through the Orakl Network CLI

listener active --host ${host} --port ${port}
listener activate --host ${host} --port ${port} --id ${id}
listener deactivate --host ${host} --port ${port} --id ${id}

This PR additionally fixed #409

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist before requesting a review

  • I have performed a self-review of my code.

Deployment

  • Should publish npm package
  • Should publish Docker image

Sorry, something went wrong.

@martinkersner martinkersner marked this pull request as ready for review March 20, 2023 15:05
@martinkersner martinkersner linked an issue Mar 21, 2023 that may be closed by this pull request
@martinkersner martinkersner merged commit a6e655c into master Mar 21, 2023
@martinkersner martinkersner deleted the i-236/feat/refactor-listener branch March 21, 2023 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant