consts

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenAPITitle       = `Gowlive API`
	OpenAPIDescription = `Gowlive API`
	OpenAPIVersion     = `1.0.0`

	MySwaggerUITemplate = `` /* 331-byte string literal not displayed */

)
View Source
const (
	DurationCacheKeyPrefix = "live:duration:"

	CpuPercentCacheKey = "system:cpu:percent"
)
View Source
const (
	LogTypeUser = 1
	LogTypeLive = 2
	LogTypePush = 3

	LogStatusSuccess = 1
	LogStatusError   = 0
)
View Source
const (
	SSE_CHANNEL_GLOBAL  = "global"
	SSE_CHANNEL_MONITOR = "monitor"
	SSE_CHANNEL_METRIC  = "metric"

	SSE_EVENT_TYPE_GLOBAL  = "global"
	SSE_EVENT_TYPE_MONITOR = "monitor"
	SSE_EVENT_TYPE_METRIC  = "metric"
)
View Source
const (
	MonitorTypeStop        = 0
	MonitorTypeStart       = 1
	MonitorTypeCron        = 2
	MonitorTypeIntelligent = 3

	DurationExpired = 24 * time.Hour

	DefaultInterval = 30
	MaxInterval     = 900

	RequestFailedThreshold = 10

	RequestsFailedWarningCKP = "live:requests:failed:warning:"
	RequestsFailedWarningTtl = 1 * time.Hour

	DisableListenerDiskFreeThreshold = 90
)
View Source
const (
	MultiLogin        = true
	ServerName        = "Gowlive Api"
	TokenType         = "Bearer"
	Timeout           = 86400
	GTokenAdminPrefix = "SYS-ADMIN-"

	ContextKey     = "ContextKey"
	UserSessionKey = "UserSessionKey"

	Success = "success"
	Error   = "error"

	CtxAdminId   = "CtxAdminId"
	CtxAdminName = "CtxAdminName"

	DefaultAdminId  = 1
	DefaultPassword = "gowlive"

	StatusActive  = 1
	StatusDisable = 0

	StorageThreshold = 90
)
View Source
const (
	CommonAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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