Documentation ¶ Index ¶ Constants func ReadDotenv(filename string) (map[string]string, error) type Config func NewConfigFromDotenv(fp string) (Config, error) Constants ¶ View Source const ( DEFAULT_MAX_CONN int = 4 DEFAULT_REPLICAS = "" // Empty string means no replicas ) Variables ¶ This section is empty. Functions ¶ func ReadDotenv ¶ func ReadDotenv(filename string) (map[string]string, error) Types ¶ type Config ¶ type Config struct { MemStoreAddr string // address of the RESP memory backend, like Redis MaxConnections int ReplicaAddrs []string // Optional replica addresses } func NewConfigFromDotenv ¶ func NewConfigFromDotenv(fp string) (Config, error) Source Files ¶ View all Source files config.go dotenv.go Click to show internal directories. Click to hide internal directories.