config

package module
v0.0.0-...-0402c63 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 5 Imported by: 0

README

go-config

go-config

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C struct {
	Debug bool `yaml:"debug"`

	Service struct {
		Name    string `yaml:"name"`
		Port    string `yaml:"port"`
		Version string `yaml:"version"`
	}

	Jwt struct {
		SignKey string        `yaml:"signKey"`
		TimeOut time.Duration `yaml:"timeOut"`
	} `yaml:"jwt"`

	Mysql struct {
		Address  string `yaml:"address"`
		Port     int    `yaml:"port"`
		UserName string `yaml:"username"`
		Password string `yaml:"password"`
		DbName   string `yaml:"db_name"`
	} `yaml:"mysql"`

	Redis struct {
		Key  string `yaml:"key"`
		Host string `yaml:"host"`
		Port string `yaml:"port"`
		Auth string `yaml:"auth"`
		Db   int    `yaml:"db"`
	} `yaml:"redis"`

	Etcd string `yaml:"etcd"`

	Jaeger string `yaml:"jaeger"`

	Nsq struct {
		Address     string `yaml:"address"`
		Lookup      string `yaml:"lookup"`
		MaxInFlight int    `yaml:"maxInFlight"`
	} `yaml:"nsq"`
}

使用者根据自己需要修改这个结构体

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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