Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alimgiray/socks5-tracker
https://github.com/alimgiray/socks5-tracker
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alimgiray/socks5-tracker
- Owner: alimgiray
- Created: 2023-05-13T18:03:10.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-05-14T19:08:41.000Z (over 1 year ago)
- Last Synced: 2024-06-21T04:52:02.124Z (5 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# socks5-tracker
This library is an extension to [this](https://github.com/things-go/go-socks5) library. It provides some extra features like:
- Limiting global usage
- Limiting usage per user, based on username authentication
- Logging usage (both global & per user) periodicallyLibrary has around `40%` unit test coverage. You can check it by running `go test -cover ./...` command in root folder.
I intentionally skipped other parts, mostly because there are network connections, where it makes more sense to cover them with integration tests rather then unit tests.To see how it works, refer to `/examples` folder. You can use this command to test it after getting it run with `go run .`:
`curl --socks5 giray:pass@localhost:8000 https://www.youtube.com`
There is also another http endpoint at `localhost:8081/logs` where external admins can check how much traffic has been used both globally and per user basis.