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

Add ListenerSink to allow users to watch events passing through sinks #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

halcyonCorsair
Copy link

Useful, e.g. for metrics.

This will allow the registry to use queue from this package, per distribution/distribution#1553 and distribution/distribution#2550.

Signed-off-by: Elliot Pahl [email protected]

@stevvooe
Copy link
Contributor

This looks good. The only question I have is about error handling: do we want a way to have the listener detect the error on write?

ls := &ListenerSink{
dst: dst,
ListenFunc: fn,
closed: false,
Copy link

Choose a reason for hiding this comment

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

Any reason not to remove this line?

@thaJeztah
Copy link
Member

@dmcgowan @manishtomar ptal

@manishtomar
Copy link

@thaJeztah Could you add me as reviewer?

@thaJeztah
Copy link
Member

@manishtomar sorry, don't have write access to this repository myself 😅

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.

5 participants