config

package
v0.0.0-...-eb0c582 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server  ServerConfig          `mapstructure:"server"`
	Logging LoggerConfig          `mapstructure:"logging"`
	Redis   RedisConnectionConfig `mapstructure:"redis"`
}

func NewConfig

func NewConfig(configFilePath string, env string) *Config

type LoggerConfig

type LoggerConfig struct {
	Level string `mapstructure:"level"`
}

type RedisConnectionConfig

type RedisConnectionConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

type ServerConfig

type ServerConfig struct {
	Port int `mapstructure:"port"`
}

Jump to

Keyboard shortcuts

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