Help us shape the future of Go! Take the 2026 Go Developer Survey

modpox

package module
v0.0.0-...-074474e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2019 License: Unlicense Imports: 10 Imported by: 0

Documentation

Overview

Implementation of a go module proxy. This proxy is intended to be used locally for caching and/or authentication for requests to private repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetToken

func SetToken(t string)

SetToken sets a token to be used for private gitlab API interaction

Types

type Backend

type Backend interface {
	upstream.Upstream

	Put(string, []byte, int) error
}

Backend is an upstream that can also store data as an intermediate cache

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the main go mod proxy

func NewServer

func NewServer() *Server

NewServer creates a new Server with default settings This will likely change to be more configurable in the future

func (*Server) Start

func (s *Server) Start()

Start starts the server asyncronously and returns immediately

Directories

Path Synopsis
cmd
modpox command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL