infra

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const (
	PostgresHostOptKey     = "/postgres/host"
	PostgresPortOptKey     = "/postgres/port"
	PostgresUserOptKey     = "/postgres/user"
	PostgresPasswordOptKey = "/postgres/password"
	PostgresDbOptKey       = "/postgres/db"
)
View Source
const (
	RedisHostOptKey     = "/redis/host"
	RedisPortOptKey     = "/redis/port"
	RedisPasswordOptKey = "/redis/password"
	RedisDbOptKey       = "/redis/db"
)

Variables

This section is empty.

Functions

func NewPostgresClient

func NewPostgresClient(config *PostgresClientConfig) *gorm.DB

func NewRedisClient

func NewRedisClient(config *RedisClientConfig) *redis.Client

Types

type PostgresClientConfig

type PostgresClientConfig struct {
	Cfg        config.Config
	Telemetry  telemetry.Telemetry
	Migrations []*gormigrate.Migration
}

type RedisClientConfig

type RedisClientConfig struct {
	Cfg       config.Config
	Telemetry telemetry.Telemetry
}

Jump to

Keyboard shortcuts

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