config

package
v0.0.0-...-23d643a Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	RedisType               string //redis类型: single(单台redis服务器) sentinel(哨兵集群)
	RedisSentinelMasterName string //redis哨兵集群主服务器名
	RedisSentinelList       string //redis哨兵服务器列表
	RedisServer             string //redis服务器
	RedisPort               int16  //redis端口号
	RedisPassword           string //redis密码
	LogPath                 string //日志路径
	RegisterKey             string //注册码
}

配置结构体

func GetConfigInstance

func GetConfigInstance() (Configuration, bool)

获得配置结构体实例

Jump to

Keyboard shortcuts

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