func golang.org/x/pkgsite/internal/config.GetEnv
20 uses
golang.org/x/pkgsite/internal/config (current package)
config.go#L38: func GetEnv(key, fallback string) string {
config.go#L344: IndexURL: GetEnv("GO_MODULE_INDEX_URL", "https://index.golang.org/index"),
config.go#L345: ProxyURL: GetEnv("GO_MODULE_PROXY_URL", "https://proxy.golang.org"),
config.go#L350: ServiceID: GetEnv("GAE_SERVICE", os.Getenv("GO_DISCOVERY_SERVICE")),
config.go#L351: VersionID: GetEnv("GAE_VERSION", os.Getenv("DOCKER_IMAGE")),
config.go#L352: InstanceID: GetEnv("GAE_INSTANCE", os.Getenv("GO_DISCOVERY_INSTANCE")),
config.go#L360: LocationID: GetEnv("GO_DISCOVERY_GAE_LOCATION_ID", "us-central1"),
config.go#L363: DBHost: chooseOne(GetEnv("GO_DISCOVERY_DATABASE_HOST", "localhost")),
config.go#L364: DBUser: GetEnv("GO_DISCOVERY_DATABASE_USER", "postgres"),
config.go#L367: DBPort: GetEnv("GO_DISCOVERY_DATABASE_PORT", "5432"),
config.go#L368: DBName: GetEnv("GO_DISCOVERY_DATABASE_NAME", "discovery-db"),
config.go#L370: DBDriver: GetEnv("GO_DISCOVERY_DATABASE_DRIVER", "pgx"),
config.go#L372: RedisCachePort: GetEnv("GO_DISCOVERY_REDIS_PORT", "6379"),
config.go#L374: RedisHAPort: GetEnv("GO_DISCOVERY_REDIS_HA_PORT", "6379"),
golang.org/x/pkgsite/cmd/frontend
main.go#L33: queueName = config.GetEnv("GO_DISCOVERY_FRONTEND_TASK_QUEUE", "")
golang.org/x/pkgsite/cmd/prober
main.go#L204: baseURL = config.GetEnv("PROBER_BASE_URL", "")
main.go#L210: authValue = config.GetEnv("GO_DISCOVERY_PROBER_AUTH_VALUE", "")
golang.org/x/pkgsite/cmd/worker
main.go#L38: queueName = config.GetEnv("GO_DISCOVERY_WORKER_TASK_QUEUE", "")
main.go#L190: filename := config.GetEnv("GO_DISCOVERY_PROXY_REMOVED", "")
main.go#L207: filename := config.GetEnv("GO_DISCOVERY_EXCLUDED_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. |