No Description

Adphi 17e0d2d4bf fix modules sub path 3 months ago
deploy 280af3fb4c use viper to handle config 4 months ago
screenshots f8e8b3d22c add screenshots, improved README.md 4 months ago
.gitignore af626f35c4 resolve symlink 4 months ago
Dockerfile 690e75d7c8 Dockerfile nobody user 4 months ago
LICENSE 62e9b3a220 add license 4 months ago
README.md f8e8b3d22c add screenshots, improved README.md 4 months ago
config.example.yml 9919c261f1 add example deployment 4 months ago
go.mod 17e0d2d4bf fix modules sub path 3 months ago
go.sum 17e0d2d4bf fix modules sub path 3 months ago
handler.go 17e0d2d4bf fix modules sub path 3 months ago
index.go a2b67cd2b6 config file + watcher 4 months ago
main.go 033f5ef862 fix config reloading 4 months ago
module.go 17e0d2d4bf fix modules sub path 3 months ago
package.go a2b67cd2b6 config file + watcher 4 months ago
templates.go a2b67cd2b6 config file + watcher 4 months ago

README.md

go-repo

go-repo is a simple golang repository hosting web app, heavily inspired by go.uber.org.

It allows hosting go modules with custom import names.

Example :

$ go get go.adphi.net/go-repo

instead of

$ go get git.adphi.net/adphi/go-repo

Installation

$ docker pull adphi/go-repo

Deployment

An example Kubernetes deployment is available in the deploy directory.

Usage

$ go-repo

Usage:
  go-repo [config] [flags]

Examples:
go-repo config.yml

Flags:
  -a, --address string      The server address (default ":8888")
  -h, --help                help for go-repo
      --logs-level string    (default "info")

An example config file:

modules:
- import: go.adphi.net/go-repo
  repository: git.adphi.net/adphi/go-repo
  readme: git.adphi.net/adphi/go-repo/raw/master/README.md

The config file is reloaded on changes

Run the app:

$ go-repo config.yml

Screenshots

The origin display the available packages index index

The details page display the README.md from configuration details