config

package
v0.0.0-...-fb2315c Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

Types

type Config

type Config struct {
	Redis  RedisConfig  `toml:"redis"`
	Consul ConsulConfig `toml:"consul"`
}
var Conf Config

func NewConfig

func NewConfig() Config

type ConsulConfig

type ConsulConfig struct {
	Host string `toml:"host"`
	Port int    `toml:"port"`
}

type RedisConfig

type RedisConfig struct {
	Host     string `toml:"redis"`
	Port     int    `toml:"port"`
	Password string `toml:"password"`
	DB       int    `toml:"db"`
}

Jump to

Keyboard shortcuts

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