config

package
v0.0.0-...-908d554 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init 初始化配置

Types

type EtcdConfig

type EtcdConfig interface {
	GetEnabled() bool
	GetPort() int
	GetHost() string
}

EtcdConfig Etcd 配置

func GetEtcdConfig

func GetEtcdConfig() (ret EtcdConfig)

GetEtcdConfig 获取Etcd配置

type MysqlConfig

type MysqlConfig interface {
	GetURL() string
	GetEnabled() bool
	GetMaxIdleConnection() int
	GetMaxOpenConnection() int
	GetConnMaxLifetime() time.Duration
}

MysqlConfig mysql 配置 接口

func GetMysqlConfig

func GetMysqlConfig() (ret MysqlConfig)

GetMysqlConfig 获取mysql配置

type Profiles

type Profiles interface {
	GetInclude() string
}

Profiles 属性配置文件

Jump to

Keyboard shortcuts

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