utils

package
v0.0.0-...-11e3e77 Latest Latest
Warning

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

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

Documentation

Overview

Package utils defines the system common functions.

Index

Constants

View Source
const (
	RequestID = "X-Request-Id"
	LogID     = "Log-Id"
)

Variables

View Source
var (
	HzHTTPClient  *client.Client
	HzHTTPSClient *client.Client
)

Functions

func BlessProgram

func BlessProgram() string

BlessProgram bless programs neves bugs.

func GetLogID

func GetLogID(ctx context.Context) string

GetLogID get the ctx Log-ID value.

func IsEmptyString

func IsEmptyString(s string) bool

IsEmptyString .

func ProxyClientHTTPInit

func ProxyClientHTTPInit() error

ProxyClientHTTPInit.

func ProxyClientHTTPSInit

func ProxyClientHTTPSInit() error

func Thankyou

func Thankyou() string

Thankyou thanks for Buddha bless.

Types

type LogKey

type LogKey string

Jump to

Keyboard shortcuts

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