package
2.0.7
Repository: https://github.com/goproxyio/goproxy.git
Documentation: pkg.go.dev

# Functions

GlobsMatchPath reports whether any path prefix of target matches one of the glob patterns (as defined by path.Match) in the comma-separated globs list.
MemFile returns an File containing the given in-memory content and modification time.
NewInfo returns a formatted info file for the given version, time pair.
NewMetricsResponseWriter creates custom metrics response writer.
NewRouter returns a new Router using the given operations.
NewServer returns a new Server using the given operations.

# Constants

ListExpire list data expire data duration.

# Structs

A Router is the proxy HTTP server, which implements Route Filter to routing private module or public module .
RouterOptions provides the proxy host and the external pattern.
A Server is the proxy HTTP server, which implements http.Handler and should be invoked to serve the paths listed in ServerPaths.

# Interfaces

A File is a file to be served, typically an *os.File or the result of calling MemFile or NewInfo.
A ServerOps provides the external operations (accessing module information and so on) needed by the Server.