config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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