Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 number

Help 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).