Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bouncer ¶
type Bouncer struct {
// contains filtered or unexported fields
}
Bouncer handles HTTP requests for Go imports by retrieving a configuration file, finding a matching package prefix, and serving an appropriate redirect.
func New ¶
New creates a new Bouncer using the configuration from the provided URL. The following URL schemes are supported:
https://{path...} Retrieve via HTTPS request http://{path...} Retrieve via HTTP request file://{path...} Retrieve from the local filesystem s3://{bucket}/{path...} Retrieve from Amazon S3 with HTTPS s3+nossl://{bucket}/{path...} Retrieve from Amazon S3 with HTTP
Click to show internal directories.
Click to hide internal directories.