util

package
v0.0.0-...-f217533 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_MAX_CACHE_TIME time.Duration = 3 * 60 * time.Minute
View Source
const DEFAULT_MIN_CACHE_TIME time.Duration = 60 * time.Minute

Variables

View Source
var ErrNotFound = errors.New("Not Found")

Functions

func JitteredCacheDuration

func JitteredCacheDuration(minMins, maxMins time.Duration) time.Duration

func OpenPostgresConn

func OpenPostgresConn(conf *config.PostgresConfig) (*bun.DB, error)

func OpenRedisConn

func OpenRedisConn(conf *config.RedisConfig) (*redis.Client, error)

func PresentStorageErrors

func PresentStorageErrors(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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