Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wikiwi/go-remote-redir
HTTP Server implementation for Go Remote Import Paths
https://github.com/wikiwi/go-remote-redir
Last synced: about 2 months ago
JSON representation
HTTP Server implementation for Go Remote Import Paths
- Host: GitHub
- URL: https://github.com/wikiwi/go-remote-redir
- Owner: wikiwi
- License: mit
- Created: 2016-06-10T13:40:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T06:54:01.000Z (over 8 years ago)
- Last Synced: 2024-06-20T02:08:50.950Z (7 months ago)
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-remote-redir
_go-remote-redir_ implements a http server to support [go remote import paths](https://golang.org/cmd/go/#hdr-Remote_import_paths).[![Build Status Widget]][Build Status] [![Coverage Status Widget]][Coverage Status] [![Code Climate Widget]][Code Climate] [![MicroBadger Image Widget]][MicroBadger URL]
[Build Status]: https://travis-ci.org/wikiwi/go-remote-redir
[Build Status Widget]: https://travis-ci.org/wikiwi/go-remote-redir.svg?branch=master
[Coverage Status]: https://coveralls.io/github/wikiwi/go-remote-redir?branch=master
[Coverage Status Widget]: https://coveralls.io/repos/github/wikiwi/go-remote-redir/badge.svg?branch=master
[Code Climate]: https://codeclimate.com/github/wikiwi/go-remote-redir
[Code Climate Widget]: https://codeclimate.com/github/wikiwi/go-remote-redir/badges/gpa.svg
[MicroBadger URL]: http://microbadger.com/#/images/wikiwi/go-remote-redir
[MicroBadger Image Widget]: https://images.microbadger.com/badges/image/wikiwi/go-remote-redir.svg## Usage
Usage:
go-remote-redir [OPTIONS]Application Options:
--listen= address to listen on (default: 0.0.0.0:8080) [$GRR_LISTEN]
--pattern= path pattern (default: /p/(?P[^/]+)/(?P[^/]+).*) [$GRR_PATTERN]
--meta= meta tag content for go remote import feature (default: example.io/p/${user}/${project} git ssh://[email protected]/${user}/${project}.git) [$GRR_META]
--redirect-name= redirect name (default: Gitlab Project Page) [$GRR_REDIRECT_NAME]
--redirect-to= redirect to (default: https://gitlab.com/${user}/${project}) [$GRR_REDIRECT_TO]
-v, --version show version numberHelp Options:
-h, --help Show this help message## Example
docker run -p 8080:8080 wikiwi/go-remote-redir## Output
curl localhost:8080/p/user/project?go-get=1
Go Remote Packages
You are being automatically redirected to Gitlab Project Page.
## Docker Hub
Automated build is available at the [Docker Hub](https://hub.docker.com/r/wikiwi/go-remote-redir).