config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var YAMLTemplate string

Functions

func InitConfig

func InitConfig(cfgFile string)

Types

type Configuration

type Configuration struct {
	Host  string `mapstructure:"host"`
	Port  string `mapstructure:"port"`
	Redis Redis  `mapstructure:"redis"`
}
var Config *Configuration

type Redis

type Redis struct {
	Network  string `mapstructure:"network"`
	Address  string `mapstructure:"address"`
	Port     string `mapstructure:"port"`
	DB       int    `mapstructure:"db"`
	Password string `mapstructure:"password"`
}

Jump to

Keyboard shortcuts

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