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

Adding support for 'watches' #298

Merged
merged 20 commits into from
Aug 22, 2014
Merged

Adding support for 'watches' #298

merged 20 commits into from
Aug 22, 2014

Conversation

armon
Copy link
Member

@armon armon commented Aug 22, 2014

This adds support for "watches". Watches are similar to Serf events: they allow an external handler to be invoked when data changes in Consul. They are implemented by wrapping blocking queries, with automatic management of the lifecycle.


Watches are a way of specifying a view of data (list of nodes, KV pairs,
health checks, etc) which is monitored for any updates. When an update
is detected, an external handler handler is invoked. A handler can be any
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo s/handler handler/handler/

armon added a commit that referenced this pull request Aug 22, 2014
Adding support for 'watches'
@armon armon merged commit 9e13633 into master Aug 22, 2014
@armon armon deleted the f-watch branch August 22, 2014 00:35
@geetarista
Copy link

bravo

@josephholsten
Copy link
Contributor

yay!

@nacyot
Copy link

nacyot commented Aug 22, 2014

👍

@tiwilliam
Copy link
Contributor

Great work @armon!

@dedene
Copy link

dedene commented Aug 22, 2014

👍 awesome!

flag = "-c"
}
cmd := exec.Command(shell, flag, script)
return cmd, nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

never returns error?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not currently, but it forces code upstream to check for a possible error

duckhan pushed a commit to duckhan/consul that referenced this pull request Oct 24, 2021
Allow setting hostPath for client data directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants