common

package
v0.0.0-...-36f27ca Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HttpHeaderUser 系统登录用户
	HttpHeaderUser = "http_user"

	// HTTPHeaderAppCode 后端APP代码
	HTTPHeaderAppCode = "http_app_code"

	// HttpHeaderRequestId required id
	HttpHeaderRequestId = "http_mon_rid"

	// HttpHeaderReadReference 查询数据库使用辅助节点
	HttpHeaderReadReference = "http_mon_read_preference"
)

Http Header Key

View Source
const (
	IdempotentStatusSend = "send"
	IdempotentStatusDone = "done"
)

idempotent 接口幂等状态

View Source
const (
	CacheKeyPrefix = "mon:v1:"
)

CacheKeyPrefix 缓存相关

View Source
const (
	ContextRequestId = "CTX-RID"
)

ContextRequestId Context Value key

View Source
const (
	SequenceCollection = "mon_id_generator"
)

mongodb

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
log
glog
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.

Jump to

Keyboard shortcuts

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