config

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB //nolint:gochecknoglobals // allow global DB.

DB global database variable.

Functions

func SetupDatabase

func SetupDatabase() (*gorm.DB, error)

SetupDatabase sets the database up.

Types

type RedisCache

type RedisCache struct {
	Store            *persist.RedisStore
	DefaultCacheTime time.Duration
}

RedisCache is a config struct for redis cache.

func SetupRedisCache

func SetupRedisCache() *RedisCache

SetupRedisCache sets the redis up.

Jump to

Keyboard shortcuts

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