config

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig(path string) error

Types

type Logging

type Logging struct {
	Level string `ini:"level"`
}

func GetLogging

func GetLogging() *Logging

type MetricsInfo

type MetricsInfo struct {
	Host string `ini:"host"`
	Port string `ini:"port"`
}

func GetMetricsInfo

func GetMetricsInfo() *MetricsInfo

type MysqlInfo

type MysqlInfo struct {
	Host         string `ini:"host"`
	Port         string `ini:"port"`
	Database     string `ini:"database"`
	User         string `ini:"user"`
	Password     string `ini:"password"`
	MaxOpenConns int    `ini:"max_open_conns"`
}

func GetMysqlInfo

func GetMysqlInfo() *MysqlInfo

type RedisInfo

type RedisInfo struct {
	Host     string `ini:"host"`
	Port     string `ini:"port"`
	User     string `ini:"user"`
	Password string `ini:"password"`
	PoolSize int    `ini:"pool_size"`
}

func GetRedisInfo

func GetRedisInfo() *RedisInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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