Masquerade helps you to host your Go modules behind your own domain.
It verifies whether the desired module exists in your GitHub account and directs go get
(and other tools) to the right repository URL.
go install go.eigsys.de/masquerade/cmd/masquerade@latest
$ masquerade -packageHost "go.eigsys.de" -githubOwner "joeig"
$ masquerade -help
- For performance reasons, Masquerade caches all GitHub responses for one hour in memory. You can clear the cache by restarting the application.
- Furthermore, a
Cache-Control
header is set with each response, which instructs the HTTP client to also cache the result for one hour. - All requests to GitHub are rate limited using a token bucket algorithm to max. 25 requests per second (burst: 100 requests).
- You can adjust these limits using flags.
Use
masquerade -help
to learn more about all available flags.