Documentation
¶
Overview ¶
Code generated; DO NOT EDIT.
Index ¶
- Constants
- type AgentReporter
- type AgentTx
- type CloudAgentReporter
- type CloudAgentTx
- type JobKind
- type JobReporter
- type JobStatus
- type JobTx
- type KeyResolver
- type ProjectReporter
- type ProjectTx
- type Reporter
- type Rollup
- type WorkerKind
- type WorkerReporter
- type WorkerState
- type WorkerStatus
- type WorkerTx
Constants ¶
View Source
const Version_P0N4MSO = true
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentReporter ¶
type AgentReporter interface {
RegisterFunc(func(ts time.Time, tx AgentTx) bool)
Tx(func(tx AgentTx))
TxAt(time.Time, func(tx AgentTx))
WithWorker(id string) WorkerReporter
WithDeferredWorker() (WorkerReporter, KeyResolver)
}
func NewNoopAgentReporter ¶
func NewNoopAgentReporter() AgentReporter
type CloudAgentReporter ¶
type CloudAgentReporter interface {
RegisterFunc(func(ts time.Time, tx CloudAgentTx) bool)
Tx(func(tx CloudAgentTx))
TxAt(time.Time, func(tx CloudAgentTx))
WithAgent(name string) AgentReporter
WithDeferredAgent() (AgentReporter, KeyResolver)
}
func NewNoopCloudAgentReporter ¶
func NewNoopCloudAgentReporter() CloudAgentReporter
type CloudAgentTx ¶
type CloudAgentTx interface{}
type JobReporter ¶
type JobReporter interface {
RegisterFunc(func(ts time.Time, tx JobTx) bool)
Tx(func(tx JobTx))
TxAt(time.Time, func(tx JobTx))
ReportRoomSessionID(v string)
ReportKind(v JobKind)
ReportWorkerKind(v WorkerKind)
ReportStatus(v JobStatus)
ReportDuration(v uint32)
ReportDurationMinutes(v uint8)
ReportStartTime(v time.Time)
ReportEndTime(v time.Time)
ReportJoinLatency(v uint32)
}
func NewNoopJobReporter ¶
func NewNoopJobReporter() JobReporter
type KeyResolver ¶
type KeyResolver interface {
Resolve(string)
Reset()
}
type ProjectReporter ¶
type ProjectReporter interface {
RegisterFunc(func(ts time.Time, tx ProjectTx) bool)
Tx(func(tx ProjectTx))
TxAt(time.Time, func(tx ProjectTx))
WithCloudAgent(id string) CloudAgentReporter
WithDeferredCloudAgent() (CloudAgentReporter, KeyResolver)
}
func NewNoopProjectReporter ¶
func NewNoopProjectReporter() ProjectReporter
type Reporter ¶
type Reporter interface {
WithProject(id string) ProjectReporter
WithDeferredProject() (ProjectReporter, KeyResolver)
}
func NewNoopReporter ¶
func NewNoopReporter() Reporter
type WorkerKind ¶
type WorkerKind string
const ( WorkerKindUndefined WorkerKind = "" WorkerKindCloud WorkerKind = "cloud" WorkerKindSelfhost WorkerKind = "selfhost" )
type WorkerReporter ¶
type WorkerReporter interface {
RegisterFunc(func(ts time.Time, tx WorkerTx) bool)
Tx(func(tx WorkerTx))
TxAt(time.Time, func(tx WorkerTx))
WithJob(id string) JobReporter
WithDeferredJob() (JobReporter, KeyResolver)
ReportLoad(v float32)
ReportStatus(v WorkerStatus)
ReportStartTime(v time.Time)
ReportJobsCurrent(v uint32)
ReportLive(v uint8)
ReportCPU(v int64)
ReportCPULimit(v int64)
ReportMem(v int64)
ReportMemLimit(v int64)
ReportRegion(v string)
ReportVersion(v string)
ReportSdkVersion(v string)
ReportState(v WorkerState)
}
func NewNoopWorkerReporter ¶
func NewNoopWorkerReporter() WorkerReporter
type WorkerState ¶
type WorkerState string
const ( WorkerStateUndefined WorkerState = "" WorkerStateOnline WorkerState = "online" WorkerStateOffline WorkerState = "offline" )
type WorkerStatus ¶
type WorkerStatus string
const ( WorkerStatusUndefined WorkerStatus = "" WorkerStatusAvailable WorkerStatus = "available" WorkerStatusFull WorkerStatus = "full" )
func WorkerStatusFromProto ¶
func WorkerStatusFromProto(status livekit.WorkerStatus) WorkerStatus
type WorkerTx ¶
type WorkerTx interface {
ReportLoad(v float32)
ReportStatus(v WorkerStatus)
ReportStartTime(v time.Time)
ReportJobsCurrent(v uint32)
ReportLive(v uint8)
ReportCPU(v int64)
ReportCPULimit(v int64)
ReportMem(v int64)
ReportMemLimit(v int64)
ReportRegion(v string)
ReportVersion(v string)
ReportSdkVersion(v string)
ReportState(v WorkerState)
}
Click to show internal directories.
Click to hide internal directories.