Documentation ¶
Overview ¶
Package app provides self-contained application business logic and signal handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachedStore ¶
type CachedStore interface {
CachedStats(model.StatsRange) model.CombinedStats
}
type CombinedStore ¶
type CombinedStore struct { Store CachedStore }
type Config ¶
type Config struct { ServerListenAddr string `envconfig:"SERVER_LISTEN_ADDR" default:"127.0.0.1:8383"` DSN string `envconfig:"DSN" default:"postgres://gevulot:gevulot@localhost:5432/gevulot"` MockStore bool `envconfig:"MOCK_STORE" default:"false"` StatsTTL time.Duration `envconfig:"STATS_TTL" default:"5s"` SseRetryTimeout time.Duration `envconfig:"SSE_RETRY_TIMEOUT" default:"10ms"` LogLevel slog.Level `envconfig:"LOG_LEVEL" default:"info"` }
func ParseConfig ¶
Click to show internal directories.
Click to hide internal directories.