config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.2.0

type Config struct {
	SeoUrl string `mapstructure:"SEO_URL"`
	// RevalidateBeta is a value which will be used for generate
	// random time point for refresh response (must be from 0.1 to 0.9).
	// Don't use absolute values like 0 and 1 due it will be leading to CPU peaks usage.
	//  - beta = 0.5 — regular, good for start value
	//  - beta = 1.0 — aggressive refreshing
	//  - beta = 0.0 — disables refreshing
	RevalidateBeta            float64       `mapstructure:"REVALIDATE_BETA"`
	RevalidateInterval        time.Duration `mapstructure:"REVALIDATE_INTERVAL"`
	InitStorageLengthPerShard int           `mapstructure:"INIT_STORAGE_LEN_PER_SHARD"`
	EvictionAlgo              string        `mapstructure:"EVICTION_ALGO"`
	MemoryFillThreshold       float64       `mapstructure:"MEMORY_FILL_THRESHOLD"`
	MemoryLimit               float64       `mapstructure:"MEMORY_LIMIT"`
	LivenessProbeTimeout      time.Duration `mapstructure:"LIVENESS_PROBE_FAILED_TIMEOUT"`
}

Jump to

Keyboard shortcuts

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