Documentation
¶
Index ¶
- func AnthropicAPIKey() string
- func AnthropicBaseURL() string
- func AnthropicModel(defaultModel string) string
- func BackfillMaxDays() int
- func CloudRunExecution() string
- func CloudRunTaskCount() int
- func CloudRunTaskIndex() int
- func DBMaxIdleConns(poolDefault int) int
- func DBMaxOpenConns(poolDefault int) int
- func DebugEnabled() bool
- func GCPProjectID() string
- func GetEnv(key, defaultValue string) string
- func GetEnvAsInt(key string, defaultValue int) int
- func GetEnvAsIntNonNeg(key string, defaultValue int) int
- func GetEnvBool(key string) bool
- func ImportMode() string
- func ImportTaskTimeout() int
- func ImportWorkers() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnthropicAPIKey ¶ added in v0.30.8
func AnthropicAPIKey() string
AnthropicAPIKey returns the Anthropic API key (empty if not configured).
func AnthropicBaseURL ¶ added in v0.30.8
func AnthropicBaseURL() string
AnthropicBaseURL returns the optional Anthropic base URL override.
func AnthropicModel ¶ added in v0.30.8
AnthropicModel returns the Anthropic model for the given default. Both import insights and metrics review read ANTHROPIC_MODEL but use different defaults (haiku for high-volume insights, sonnet for review). Override: ANTHROPIC_MODEL.
func BackfillMaxDays ¶ added in v0.30.5
func BackfillMaxDays() int
BackfillMaxDays returns the PR size backfill lookback window in days. Override: BACKFILL_MAX_DAYS (default 90).
func CloudRunExecution ¶ added in v0.30.8
func CloudRunExecution() string
CloudRunExecution returns the Cloud Run execution ID, or a local fallback. Override: CLOUD_RUN_EXECUTION.
func CloudRunTaskCount ¶ added in v0.33.0
func CloudRunTaskCount() int
CloudRunTaskCount returns the total number of tasks in the job execution. Override: CLOUD_RUN_TASK_COUNT (default 1 for local/single-task runs).
func CloudRunTaskIndex ¶ added in v0.33.0
func CloudRunTaskIndex() int
CloudRunTaskIndex returns the 0-based task index within the job execution. Override: CLOUD_RUN_TASK_INDEX (default 0 for local/single-task runs).
func DBMaxIdleConns ¶ added in v0.30.8
DBMaxIdleConns returns the max idle database connections. Override: DB_MAX_IDLE_CONNS. Caller supplies the per-pool default.
func DBMaxOpenConns ¶ added in v0.30.8
DBMaxOpenConns returns the max open database connections. Override: DB_MAX_OPEN_CONNS. Caller supplies the per-pool default.
func DebugEnabled ¶ added in v0.30.8
func DebugEnabled() bool
DebugEnabled returns true if debug logging is enabled. Override: DEVPULSE_DEBUG=true|1.
func GCPProjectID ¶ added in v0.30.8
func GCPProjectID() string
GCPProjectID returns the GCP project ID. Override: GCP_PROJECT_ID (default "devpulseio").
func GetEnv ¶
GetEnv retrieves the value of the environment variable named by the key. If the variable is present in the environment, its value is returned. Otherwise, the provided defaultValue is returned.
func GetEnvAsInt ¶ added in v0.30.8
GetEnvAsInt retrieves the value of the environment variable named by the key and converts it to an integer. Returns defaultValue if unset or non-positive.
func GetEnvAsIntNonNeg ¶ added in v0.33.0
GetEnvAsIntNonNeg retrieves the value of the environment variable and converts it to a non-negative integer. Returns defaultValue if unset or negative.
func GetEnvBool ¶ added in v0.30.8
GetEnvBool returns true if the environment variable is set to "true" or "1".
func ImportMode ¶ added in v0.30.8
func ImportMode() string
ImportMode returns the import mode (all, import, reputation). Override: IMPORT_MODE (default "all").
func ImportTaskTimeout ¶ added in v0.33.0
func ImportTaskTimeout() int
ImportTaskTimeout returns the per-task timeout in minutes. Override: IMPORT_TASK_TIMEOUT (default 55).
func ImportWorkers ¶ added in v0.33.0
func ImportWorkers() int
ImportWorkers returns the number of concurrent goroutine workers per task. Override: IMPORT_WORKERS (default 2).
Types ¶
This section is empty.