konfigStore

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Connection *sqlx.DB
}

type KonfigStore

type KonfigStore struct {
	Database   *Database
	RedisCache *RedisCache
}

func New

func New(opts ...Options) *KonfigStore

type Options

type Options func(*KonfigStore)

func WithDatabase

func WithDatabase(d *Database) Options

func WithRedisCache

func WithRedisCache(c *RedisCache) Options

type RedisCache

type RedisCache struct {
	Connection         *redis.Client
	ClusterModeEnabled bool
}

Jump to

Keyboard shortcuts

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