Versions in this module Expand all Collapse all v1 v1.0.0 Sep 6, 2023 Changes in this version + func GetEnv(key string, defaultValue string) string + func GetEnvBool(key string, defaultValue bool) bool + func GetEnvFloat[T constraints.Float](key string, defaultValue T) T + func GetEnvInt[T constraints.Integer](key string, defaultValue T) T + func GetEnvSet[T comparable](key string, defaultValue map[T]bool) map[T]bool + func GetEnvSlice[T comparable](key string, defaultValue []T) []T + type CORS struct + Enabled bool + type Cache struct + DisabledRoutes []string + Enabled bool + SizeMB int + TTL int + type Config struct + BlockRoutesRegex []*regexp.Regexp + CacheDisabledRoutesRegex []*regexp.Regexp + CacheStorage *freecache.Cache + CacheTTL time.Duration + ConfigFile *ConfigFile + DenyListTable map[string]bool + ProxyConfig *middleware.ProxyConfig + Rate *limiter.Rate + RequestLoggerConfig *middleware.RequestLoggerConfig + func NewConfig() *Config + type ConfigFile struct + CORS CORS + Cache Cache + DenyList DenyList + DenyRoutes DenyRoutes + GC GC + GZIP GZIP + Host string + Logger Logger + Metrics Metrics + RateLimit RateLimit + TezosHost string + type DenyList struct + Enabled bool + Values []string + type DenyRoutes struct + Enabled bool + Values []string + type GC struct + Percent int + type GZIP struct + Enabled bool + type Logger struct + BunchSize int + PoolIntervalSeconds int + type Metrics struct + Enabled bool + Host string + Pprof bool + type RateLimit struct + Enabled bool + Max int + Minutes float64