Discover Packages
github.com/sixt/gomodproxy
pkg
api
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Oct 16, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
New returns a configured http.Handler which implements GOPROXY API.
Option configures an API handler.
CacheDir configures API to use a local disk storage for downloaded modules.
Git configures API to use a specific git client when trying to download a
repository with the given prefix. Auth string can be a path to the SSK key,
or a colon-separated username:password string.
GitDir configures API to use a specific directory for bare git repos.
Log configures API to use a specific logger function, such as log.Println,
testing.T.Log or any other custom logger.
Memory configures API to use in-memory cache for downloaded modules.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.