package dynconfig
Import Path
golang.org/x/pkgsite/internal/config/dynconfig (on go.dev)
Dependency Relation
imports 11 packages, and imported by one package
Involved Source Files
Package dynconfig supports dynamic configuration for pkgsite services.
Dynamic configuration is read from a file and can change over the lifetime of
the process.
Package-Level Type Names (only one, which is exported)
DynamicConfig holds configuration that can change over the lifetime of the
process. It is loaded from a GCS file or other external source.
Experiments []*internal.Experiment
func Parse(yamlData []byte) (_ *DynamicConfig, err error)
func Read(ctx context.Context, location string) (_ *DynamicConfig, err error)
Package-Level Functions (total 2, both are exported)
Parse parses yamlData as a YAML description of DynamicConfig.
Read reads dynamic configuration from the given location.
Location may be of the form gs://bucket/object, denoting a GCS bucket.
Otherwise it is interpreted as a filename.
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |