debug

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config debugConfig
View Source
var NeedDebug bool

Functions

func ConfigDebugDB

func ConfigDebugDB(dbConf *model.DbConf)

在开发环境进行DB重定向

func ConfigDebugRedis

func ConfigDebugRedis(redisConf *model.RedisConf)

在开发环境对Redis重定向

func GetEtcdConf added in v0.0.2

func GetEtcdConf() (etcd *model.EtcdConf)

func GetMailConf

func GetMailConf() (mail *model.MailConf)

func PathExists

func PathExists(path string) (bool, error)

func ReadYml

func ReadYml(path string, obj interface{}) error

读取配置文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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