config

package
v0.0.0-...-4c750bb Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(appConfig *AppConfig) error

double check this linting: avoid using reflect.DeepEqual with errorsdeepequalerrors

Types

type AppConfig

type AppConfig struct {
	ServiceName string
	Config      ServiceConfig
}

func LoadConfig

func LoadConfig() (*AppConfig, error)

type ServiceConfig

type ServiceConfig struct {
	Vault       VaultConfig
	RedisConfig redis.Configuration
}

type VaultConfig

type VaultConfig struct {
	TokenFile   string
	Host        string
	Port        int
	HttpTimeout string
}

Jump to

Keyboard shortcuts

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