Categorygithub.com/mozilla-services/go-bouncer
modulepackage
1.15.0
Repository: https://github.com/mozilla-services/go-bouncer.git
Documentation: pkg.go.dev

# README

go-bouncer CircleCI GoDoc

A Go port of the user facing portion as part of the Bouncer project.

Environment Variables

BOUNCER_PINNED_BASEURL_HTTP

If this is a unset, bouncer will randomly pick a healthy mirror from the database and return its base url. If this option is set, the mirror table is completely ignored and BOUNCER_PINNED_BASEURL_HTTP will be returned instead.

This option acts on non ssl only products.

Example: BOUNCER_PINNED_BASEURL=download-sha1.cdn.mozilla.net/pub

BOUNCER_PINNED_BASEURL_HTTPS

This option is exactly the same as BOUNCER_PINNED_BASEURL_HTTP but acts on ssl only products.

BOUNCER_STUB_ROOT_URL

If set, bouncer will redirect requests with attribution_sig and attribution_code parameters to BOUNCER_STUB_ROOT_URL?product=PRODUCT&os=OS&lang=LANG&attribution_sig=ATTRIBUTION_SIG&attribution_code=ATTRIBUTION_CODE.

Example: BOUNCER_STUB_ROOT_URL=https://stubdownloader.services.mozilla.com/

# Packages

No description provided by the author
No description provided by the author

# Functions

BouncerParamsFromValues constructs parameter list from incoming request Values.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author

# Structs

BouncerHandler is the primary handler for this application.
BouncerParams holds/parses params for incoming bouncer requests.
HealthHandler returns 200 if the app looks okay.
HealthResult represents service health.