config

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvOrDefault added in v0.1.18

func GetEnvOrDefault(key, defaultValue string) string

GetEnvOrDefault is an exported helper for other packages that need simple environment access while still being easy to mock in tests.

Types

type Config

type Config struct {
	DB_USERNAME string
	DB_PASSWORD string
	DB_HOST     string
	DB_PORT     string
	DB_NAME     string
	DISABLE_TLS string

	REDIS_HOST     string
	REDIS_PORT     string
	REDIS_USERNAME string
	REDIS_PASSWORD string

	// ClickHouse configuration for traces
	CLICKHOUSE_HOST     string
	CLICKHOUSE_PORT     int
	CLICKHOUSE_DATABASE string
	CLICKHOUSE_USERNAME string
	CLICKHOUSE_PASSWORD string
	CLICKHOUSE_USE_TLS  bool

	// Otel
	OTEL_EXPORTER_OTLP_ENDPOINT string

	// Auth
	JWT_SECRET          string
	STATE_SECRET        string
	AUTH0_DOMAIN        string
	AUTH0_CLIENT_ID     string
	AUTH0_CLIENT_SECRET string
	AUTH0_CALLBACK_URL  string

	// Restate
	RESTATE_WORKER_HOST_PORT string
	RESTATE_SERVER_ENDPOINT  string

	// Temporal
	TEMPORAL_SERVER_HOST_PORT string

	// Data Path
	DATA_PATH string
}

func ReadConfig

func ReadConfig() *Config

func (*Config) GetAgentDataPath added in v0.1.20

func (c *Config) GetAgentDataPath() string

GetAgentDataPath returns the path where agent data is stored.

func (*Config) GetSessionDataPath added in v0.1.20

func (c *Config) GetSessionDataPath() string

GetSessionDataPath returns the path to use for sandbox session data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL