config

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 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) Etcd added in v0.9.14

func (conf *Config) Etcd() *etcd.Config

etcd

func (*Config) IsProduct added in v0.9.16

func (conf *Config) IsProduct() bool

func (*Config) LoadFile

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

LoadFile 加载配置文件

func (*Config) Mysql

func (conf *Config) Mysql() *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