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.
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
}
Click to show internal directories.
Click to hide internal directories.