configs

package
v0.0.0-...-15068e1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger()

Types

type Config

type Config struct {
	DbUser          string
	DbPassword      string
	DbName          string
	DbHost          string
	DbPort          string
	RateLimit       int
	RateLimitWindow int
	Port            string
	JwtSecret       string
	Env             string
	RedisHost       string
	RedisPort       string
}

func NewEnv

func NewEnv() *Config

type DbConfig

type DbConfig struct {
	Db *pgxpool.Pool
}

func NewDbConfig

func NewDbConfig(cfg *Config) *DbConfig

type RedisConfig

type RedisConfig struct {
	Client *redis.Client
}

func NewRedisConfig

func NewRedisConfig(cfg *Config) *RedisConfig

Jump to

Keyboard shortcuts

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