config

package
v0.0.0-...-b496078 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const APP_PREFIX = "APP_REDIS"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr       string `envconfig:"ADDR" default:"localhost:6379"`
	Password   string `envconfig:"PASSWORD" default:""`
	DB         int    `envconfig:"DB" default:"0"`
	MaxRetries int    `envconfig:"MAX_RETRIES" default:"3"`
}

func New

func New() *Config

Jump to

Keyboard shortcuts

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