helper

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(path string) error

CreateDir 文件夹创建

func Empty

func Empty(ip string) bool

The len built-in function returns the length of v, according to its type:

Array: the number of elements in v.
Pointer to array: the number of elements in *v (even if v is nil).
Slice, or map: the number of elements in v; if v is nil, len(v) is zero.
String: the number of bytes in v.
Channel: the number of elements queued (unread) in the channel buffer;
         if v is nil, len(v) is zero.

func GetConfig

func GetConfig(envK string, defaultK string) string

func GetQPS

func GetQPS() (float64, int64)

获取限流QPS

func GetRabbitmqAddress added in v1.0.9

func GetRabbitmqAddress() string

获取rabbitmq地址

func GetRegistry added in v1.0.10

func GetRegistry() registry.Registry

获取注册中心地址

func GetRegistryAddress

func GetRegistryAddress() string

func GetTraceAddress

func GetTraceAddress() string

获取链路追踪地址

func IsExist

func IsExist(f string) bool

IsExist 判断文件夹/文件是否存在 存在返回 true

func IsNil

func IsNil(value interface{}) bool

The argument must be a chan, func, interface, map, pointer, or slice value; if it is not, IsNil panics.

func IsOpenDebug added in v1.0.8

func IsOpenDebug() (bool, error)

default : debug environment

Types

This section is empty.

Jump to

Keyboard shortcuts

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