utils

package
v0.0.0-...-826a30d Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GServerName 应用程序名称
	GServerName string
	// GMysqlHost mysql地址
	GMysqlHost string
	// GMysqlPort mysql端口
	GMysqlPort string
	// GMysqlUser mysql用户名
	GMysqlUser string
	// GMysqlPass mysql密码
	GMysqlPass string
	// GMysqlDb mysql数据库
	GMysqlDb string
	// GRedisHost redis地址
	GRedisHost string
	// GRedisPort redis端口
	GRedisPort string
	// GRedisDb redis库
	GRedisDb string
	// GEtcdHost etcd地址
	GEtcdHost string
	// GEtcdPort etcd端口
	GEtcdPort string
)

Functions

func DelConf

func DelConf(key string) (rsp *clientv3.DeleteResponse, err error)

DelConf 删除etcd配置项

func Md5String

func Md5String(s string) string

Md5String 加密函数

func PutConf

func PutConf(key, val string) (rsp *clientv3.PutResponse, err error)

PutConf 增加/修改etcd项

func RedisConn

func RedisConn() (bm cache.Cache, err error)

RedisConn redis连接

Types

This section is empty.

Jump to

Keyboard shortcuts

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