Skip to content

codingpop/notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notify

A non-blocking notification Go client library.

Running the executable

Install the dependencies

Run:

cd ./notify

And then run:

  go get ./...

Using the provided listner server:

  1. Start the server.
go run cmd/listener/main.go
  1. Start the cli.
  go run cmd/cli/main.go --url http://localhost:6340 --interval 1s

Send tons of requests at once:

go run cmd/cli/main.go --url http://localhost:6340 --interval 1s < messages.txt

Note: You can observe the requests in the listener console

Using an external server (e.g., https://jsonplaceholder.typicode.com/posts):

  go run cmd/cli/main.go --url https://jsonplaceholder.typicode.com/posts --interval 1s

Testing

go test -v -cover ./... -count=1

Thank you for coming! 🍻

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages