gvalue

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DBBaggageKey baggageKey = iota
View Source
const HttpHeaderLogIDKey = "X-WebServerLog-Id"

HttpHeaderLogIDKey http log id key

View Source
const TimeRFC3339Milli = "2006-01-02T15:04:05.000Z07:00"

TimeRFC3339Milli 定义一个3339带3位毫秒时间

Variables

View Source
var (
	DBWriteInstance = DBContext{Key: "__db_write_instance"}
	DBReadInstance  = DBContext{Key: "__db_read_instance"}
)

Functions

func Hostname

func Hostname() string

Hostname 获取hostname

func IdcName

func IdcName() string

IdcName 获取idc名称

func LocalIP

func LocalIP() string

LocalIP 获取机器本地ip地址

Types

type Baggage

type Baggage struct {
	TraceID string
	IP      string
}

type DBContext

type DBContext struct {
	Key string
}

func (DBContext) String

func (d DBContext) String() string

Jump to

Keyboard shortcuts

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