module

package
v0.0.0-...-86b2471 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server implements the Go module proxy protocol: https://golang.org/cmd/go/#hdr-Module_proxy_protocol.

func NewServer

func NewServer(opts ServerOptions) (*Server, error)

NewServer is a constructor for Server.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ServerOptions

type ServerOptions struct {
	AccessControlList    []*config.AccessControlListElement
	ClientAuthEnabled    bool
	GoModuleService      servicegomodule.Service
	RequestAuthenticator common.RequestAuthenticatorFunc
	// UseEncodedPath must have been called on Router.
	Router *mux.Router
}

Jump to

Keyboard shortcuts

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