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

document example usage #5

Open
alexanderankin opened this issue Jan 26, 2024 · 0 comments
Open

document example usage #5

alexanderankin opened this issue Jan 26, 2024 · 0 comments

Comments

@alexanderankin
Copy link

for example, you can start a broker, start pg honey and listen to it:

# pip install hpfeeds[broker]
# https://github.com/hpfeeds/hpfeeds
HPFEEDS_ABC123_SECRET=def567 \
HPFEEDS_ABC123_PUBCHANS=pghoney.events \
HPFEEDS_ABC123_SUBCHANS=pghoney.events \
hpfeeds-broker --auth env --endpoint tcp:port=10000

# in a new terminal
git clone git@github.com:betheroot/pghoney.git && cd pghoney
go mod init github.com/betheroot/pghoney
grep -nr Siru | awk -F: ' { print $1 } ' | xargs -n1 sed -i 's#github.com/Sirupsen/logrus#github.com/sirupsen/logrus#'
go mod tidy
go build
cp pghoney.conf{.sample,}
./pghoney

# in a new terminal
nc localhost 5432
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

No branches or pull requests

1 participant