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)
/* sort exporteds by: | */
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.