depproxy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedModule

type AllowedModule struct {
	// Exactly one of Path and PathPattern are set
	Path        goproxy.ModulePath
	PathPattern string                // if set, is a valid path.Pattern
	Version     goproxy.ModuleVersion // if not set, all versions are allowed
}

func ReadAllowedModules

func ReadAllowedModules(r io.Reader) ([]AllowedModule, error)

type Server

type Server struct {
	UpstreamProxy  *url.URL
	AllowedModules []AllowedModule
}

func (*Server) HTTPHandler

func (s *Server) HTTPHandler() http.Handler

Directories

Path Synopsis
Package diff computes differences between text files or strings.
Package diff computes differences between text files or strings.
lcs
package lcs contains code to find longest-common-subsequences (and diffs)
package lcs contains code to find longest-common-subsequences (and diffs)
myers
Package myers implements the Myers diff algorithm.
Package myers implements the Myers diff algorithm.

Jump to

Keyboard shortcuts

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