Back to godoc.org
golang.org/x/pkgsite

Directory golang.org/x/pkgsite

v0.0.0-...-9532b3e
Latest Go to latest

The latest major version is .

Published: 5 days ago | License: BSD-3-Clause | Module: golang.org/x/pkgsite
Path Synopsis
cmd/frontend The frontend runs a service to serve user-facing traffic.
cmd/internal/cmdconfig Package cmdconfig contains functions for configuring commands.
cmd/prober The prober hits the frontend with a fixed set of URLs.
cmd/teeproxy The teeproxy hits the frontend with a URL from godoc.org.
cmd/worker The worker command runs a service with the primary job of fetching modules from a proxy and writing them to the database.
devtools/cmd/csphash csphash computes the hashes of script tags in files, and checks that they are added to our content security policy.
devtools/cmd/css Command css appends CSS styles to content/static/stylesheet.css.
internal Package internal contains data used through x/pkgsite.
internal/auth Package auth authorizes programs to make HTTP requests to the discovery site.
internal/breaker Package breaker implements the circuit breaker pattern.
internal/complete Package complete defines a Completion type that is used in auto-completion, along with Encode and Decode methods that can be used for storing this type in redis.
internal/config Package config resolves shared configuration for Go Discovery services, and provides functions to access this configuration.
internal/config/dynconfig Package dynconfig supports dynamic configuration for pkgsite services.
internal/database Package database adds some useful functionality to a sql.DB.
internal/dcensus Package dcensus provides functionality for debug instrumentation.
internal/derrors Package derrors defines internal error values to categorize the different types error semantics we support.
internal/experiment Package experiment provides functionality for experiments.
internal/fetch Package fetch provides a way to fetch modules from a proxy.
internal/frontend Package frontend provides functionality for running the pkg.go.dev site.
internal/godoc Package godoc is for rendering Go documentation.
internal/godoc/dochtml Package dochtml renders Go package documentation into HTML.
internal/godoc/dochtml/internal/render Package render formats Go documentation as HTML.
internal/godoc/internal/doc Package doc extracts source code documentation from a Go AST.
internal/index Package index provides a client for communicating with the module index.
internal/licenses Package licenses detects licenses and determines whether they are redistributable.
internal/localdatasource Package localdatasource implements an in-memory internal.DataSource used to load and display documentation for local modules that are not available via a proxy.
internal/log Package log supports structured and unstructured logging with levels.
internal/middleware Package middleware implements a simple middleware pattern for http handlers, along with implementations for some common middlewares.
internal/poller Package poller supports periodic polling to load a value.
internal/postgres Package postgres provides functionality for reading and writing to the postgres database.
internal/proxy Package proxy provides a client for interacting with a proxy.
internal/proxydatasource Package proxydatasource implements an internal.DataSource backed solely by a proxy instance.
internal/queue Package queue provides queue implementations that can be used for asynchronous scheduling of fetch actions.
internal/secrets Package secrets is used to interact with secretmanager.
internal/source Package source constructs public URLs that link to the source files in a module.
internal/stdlib Package stdlib supports special handling of the Go standard library.
internal/teeproxy Package teeproxy provides functionality for running a service which tees traffic to pkg.go.dev.
internal/testing/dbtest Package dbtest supports testing with a database.
internal/testing/htmlcheck Package htmlcheck provides a set of functions that check for properties of a parsed HTML document.
internal/testing/pagecheck Package pagecheck implements HTML checkers for discovery site pages.
internal/testing/sample Package sample provides functionality for generating sample values of the types contained in the internal package.
internal/testing/testhelper Package testhelper provides shared functionality and constants to be used in Discovery tests.
internal/version Package version handles version types.
internal/worker Package worker provides functionality for running a worker service.
internal/xcontext Package xcontext is a package to offer the extra functionality we need from contexts that is not available from the standard context package.