config

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 6 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 {
	*viper.Viper
	// contains filtered or unexported fields
}

Config 配置

func New

func New() *Config

New 实例

func (*Config) LoadFile

func (conf *Config) LoadFile(path string) error

LoadFile 加载配置文件

func (*Config) Mysql

func (conf *Config) Mysql() map[string]mysql.Config

mysql

func (*Config) Redis

func (conf *Config) Redis() *redis.Config

Redis

func (*Config) Server

func (conf *Config) Server() *serverConf

Server

Jump to

Keyboard shortcuts

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