config

package
v0.0.0-...-64d7a94 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type EtcdConfig

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

func GetEtcdConfig

func GetEtcdConfig() (ret EtcdConfig)

type JwtConfig

type JwtConfig interface {
	GetSecretKey() string
}

func GetJwtConfig

func GetJwtConfig() (ret JwtConfig)

type MisConfig

type MisConfig interface {
	GetImageAddr() string
	GetMailUser() string
	GetMailPass() string
	GetDialogPath() string
	GetDialogPrefix() string
	GetMLAddr() string
	GetMLPort() int
}

func GetMisconfig

func GetMisconfig() (ret MisConfig)

type MysqlConfig

type MysqlConfig interface {
	GetURL() string
	GetName() string
	GetPsw() string
	GetDbName() string
	GetEnabled() bool
	GetMigrate() bool
	GetMaxIdleConnection() int
	GetMaxOpenConnection() int
	GetConnMaxLifetime() int
}

func GetMysqlConfig

func GetMysqlConfig() (ret MysqlConfig)

type Profiles

type Profiles interface {
	GetInclude() string
}

type RedisConfig

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

func GetRedisConfig

func GetRedisConfig() (ret RedisConfig)

type RedisSentinelConfig

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

Jump to

Keyboard shortcuts

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