constant

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionUserId = "_userId_"
	IsRootUser    = "_isRootUser_"
)

session key

View Source
const (
	DateFormat                   = "2006-01-02T15:04:05.999Z" // 日期格式
	RequestId                    = "X-Request-Id"             // http请求头
	Swagger                      = "/swagger"                 //swagger路径
	SshEstablishTimeoutInSeconds = 30                         // ssh建立连接的超时时间
)
View Source
const (
	// LoginSession 登录成功后,保存的cookie信息
	LoginSession = "LOGIN_SESSION"
)

cookie name

View Source
const NewLine = "\n"
View Source
const (
	ServerInternalError = "Server internal error"
)

Variables

This section is empty.

Functions

func CacheKeyHostInfo

func CacheKeyHostInfo(ip string) string

func CacheKeyPerformanceStats

func CacheKeyPerformanceStats(ip string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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