config

package
v0.0.0-...-6e6526d Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 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 AppContext

type AppContext struct {
	EnvVars Environment
}

func NewAppContext

func NewAppContext() AppContext

type Environment

type Environment struct {
	Redis RedisOptions
}

type RedisOptions

type RedisOptions struct {
	RedisAddress  string `env:"REDIS_ADDRESS"`
	RedisPassword string `env:"REDIS_PASSWORD"`
	Database      int    `env:"REDIS_DATABASE"`
}

Jump to

Keyboard shortcuts

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