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 LogStatusSuccess = 1 LogStatusError = 0 )
View Source
const ( SSE_CHANNEL_MONITOR = "monitor" SSE_CHANNEL_NOTIFY = "notify" SSE_EVENT_TYPE_MONITOR = "monitor" SSE_EVENT_TYPE_NOTIFY = "notify" )
View Source
const ( MonitorTypeStop = 0 MonitorTypeStart = 1 MonitorTypeCron = 2 MonitorTypeIntelligent = 3 DurationExpired = 24 * time.Hour DefaultInterval = 30 MaxInterval = 900 )
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.
Click to show internal directories.
Click to hide internal directories.