Documentation
¶
Overview ¶
Code generated; DO NOT EDIT.
Index ¶
Constants ¶
View Source
const Version_9IAJBGO = 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 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)
ReportStatus(v JobStatus)
ReportDuration(v uint32)
ReportDispatchedAt(v time.Time)
ReportJoinedAt(v time.Time)
ReportCompletedAt(v time.Time)
}
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))
WithAgent(name string) AgentReporter
WithDeferredAgent() (AgentReporter, KeyResolver)
}
func NewNoopProjectReporter ¶
func NewNoopProjectReporter() ProjectReporter
type Reporter ¶
type Reporter interface {
WithProject(id string) ProjectReporter
WithDeferredProject() (ProjectReporter, KeyResolver)
}
func NewNoopReporter ¶
func NewNoopReporter() Reporter
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)
ReportCPU(v int64)
ReportCPULimit(v int64)
ReportMem(v int64)
ReportMemLimit(v int64)
ReportLoad(v float32)
ReportStatus(v WorkerStatus)
ReportRegion(v string)
ReportVersion(v string)
ReportSdkVersion(v string)
ReportState(v WorkerState)
ReportStartedAt(v time.Time)
ReportJobsCurrent(v uint16)
ReportKind(v AgentKind)
}
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 {
ReportCPU(v int64)
ReportCPULimit(v int64)
ReportMem(v int64)
ReportMemLimit(v int64)
ReportLoad(v float32)
ReportStatus(v WorkerStatus)
ReportRegion(v string)
ReportVersion(v string)
ReportSdkVersion(v string)
ReportState(v WorkerState)
ReportStartedAt(v time.Time)
ReportJobsCurrent(v uint16)
ReportKind(v AgentKind)
}
Click to show internal directories.
Click to hide internal directories.