config

package
v0.0.0-...-36d9f02 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init 初始化配置

Types

type ConsulConfig

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

ConsulConfig consul 配置

func GetConsulConfig

func GetConsulConfig() (ret ConsulConfig)

GetConsulConfig 获取Consul配置

type JwtConfig

type JwtConfig interface {
	GetSecretKey() string
}

jwtConfig jwt 配置 接口

func GetJwtConfig

func GetJwtConfig() (ret JwtConfig)

GetJwtConfig 获取Jwt配置

type MysqlConfig

type MysqlConfig interface {
	GetURL() string
	GetDockerURL() string
	GetEnabled() bool
	GetMaxIdleConnection() int
	GetMaxOpenConnection() int
}

MysqlConfig mysql 配置 接口

func GetMysqlConfig

func GetMysqlConfig() (ret MysqlConfig)

GetMysqlConfig 获取mysql配置

type RedisConfig

type RedisConfig interface {
	GetEnabled() bool
	GetConn() string
	GetDockerConn() string
	GetPassword() string
	GetDBNum() int
	GetSentinelConfig() RedisSentinelConfig
}

RedisConfig redis 配置

func GetRedisConfig

func GetRedisConfig() (ret RedisConfig)

GetRedisConfig 获取Redis配置

type RedisSentinelConfig

type RedisSentinelConfig interface {
	GetEnabled() bool
	GetMaster() string
	GetNodes() []string
}

RedisSentinelConfig 哨兵配置

Jump to

Keyboard shortcuts

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