|
| 1 | +// Code generated; DO NOT EDIT. |
| 2 | + |
| 3 | +package agentsobs |
| 4 | + |
| 5 | +import ( |
| 6 | + "time" |
| 7 | +) |
| 8 | + |
| 9 | +var ( |
| 10 | + _ Reporter = (*noopReporter)(nil) |
| 11 | + _ ProjectReporter = (*noopProjectReporter)(nil) |
| 12 | + _ AgentReporter = (*noopAgentReporter)(nil) |
| 13 | + _ WorkerReporter = (*noopWorkerReporter)(nil) |
| 14 | + _ JobReporter = (*noopJobReporter)(nil) |
| 15 | +) |
| 16 | + |
| 17 | +type noopKeyResolver struct{} |
| 18 | + |
| 19 | +func (noopKeyResolver) Resolve(string) {} |
| 20 | +func (noopKeyResolver) Reset() {} |
| 21 | + |
| 22 | +type noopReporter struct{} |
| 23 | + |
| 24 | +func NewNoopReporter() Reporter { |
| 25 | + return &noopReporter{} |
| 26 | +} |
| 27 | + |
| 28 | +func (r *noopReporter) WithProject(id string) ProjectReporter { |
| 29 | + return &noopProjectReporter{} |
| 30 | +} |
| 31 | + |
| 32 | +func (r *noopReporter) WithDeferredProject() (ProjectReporter, KeyResolver) { |
| 33 | + return &noopProjectReporter{}, noopKeyResolver{} |
| 34 | +} |
| 35 | + |
| 36 | +type noopProjectReporter struct{} |
| 37 | + |
| 38 | +func NewNoopProjectReporter() ProjectReporter { |
| 39 | + return &noopProjectReporter{} |
| 40 | +} |
| 41 | + |
| 42 | +func (r *noopProjectReporter) RegisterFunc(f func(ts time.Time, tx ProjectTx) bool) {} |
| 43 | +func (r *noopProjectReporter) Tx(f func(ProjectTx)) {} |
| 44 | +func (r *noopProjectReporter) TxAt(ts time.Time, f func(ProjectTx)) {} |
| 45 | +func (r *noopProjectReporter) WithAgent(name string) AgentReporter { |
| 46 | + return &noopAgentReporter{} |
| 47 | +} |
| 48 | +func (r *noopProjectReporter) WithDeferredAgent() (AgentReporter, KeyResolver) { |
| 49 | + return &noopAgentReporter{}, noopKeyResolver{} |
| 50 | +} |
| 51 | + |
| 52 | +type noopAgentReporter struct{} |
| 53 | + |
| 54 | +func NewNoopAgentReporter() AgentReporter { |
| 55 | + return &noopAgentReporter{} |
| 56 | +} |
| 57 | + |
| 58 | +func (r *noopAgentReporter) RegisterFunc(f func(ts time.Time, tx AgentTx) bool) {} |
| 59 | +func (r *noopAgentReporter) Tx(f func(AgentTx)) {} |
| 60 | +func (r *noopAgentReporter) TxAt(ts time.Time, f func(AgentTx)) {} |
| 61 | +func (r *noopAgentReporter) WithWorker(id string) WorkerReporter { |
| 62 | + return &noopWorkerReporter{} |
| 63 | +} |
| 64 | +func (r *noopAgentReporter) WithDeferredWorker() (WorkerReporter, KeyResolver) { |
| 65 | + return &noopWorkerReporter{}, noopKeyResolver{} |
| 66 | +} |
| 67 | + |
| 68 | +type noopWorkerReporter struct{} |
| 69 | + |
| 70 | +func NewNoopWorkerReporter() WorkerReporter { |
| 71 | + return &noopWorkerReporter{} |
| 72 | +} |
| 73 | + |
| 74 | +func (r *noopWorkerReporter) RegisterFunc(f func(ts time.Time, tx WorkerTx) bool) {} |
| 75 | +func (r *noopWorkerReporter) Tx(f func(WorkerTx)) {} |
| 76 | +func (r *noopWorkerReporter) TxAt(ts time.Time, f func(WorkerTx)) {} |
| 77 | +func (r *noopWorkerReporter) ReportMem(v float32) {} |
| 78 | +func (r *noopWorkerReporter) ReportCPU(v float32) {} |
| 79 | +func (r *noopWorkerReporter) ReportLoad(v float32) {} |
| 80 | +func (r *noopWorkerReporter) ReportStatus(v WorkerStatus) {} |
| 81 | +func (r *noopWorkerReporter) ReportRegion(v string) {} |
| 82 | +func (r *noopWorkerReporter) ReportVersion(v string) {} |
| 83 | +func (r *noopWorkerReporter) ReportStartedAt(v time.Time) {} |
| 84 | +func (r *noopWorkerReporter) ReportJobsCurrent(v uint16) {} |
| 85 | +func (r *noopWorkerReporter) ReportKind(v AgentKind) {} |
| 86 | +func (r *noopWorkerReporter) WithJob(id string) JobReporter { |
| 87 | + return &noopJobReporter{} |
| 88 | +} |
| 89 | +func (r *noopWorkerReporter) WithDeferredJob() (JobReporter, KeyResolver) { |
| 90 | + return &noopJobReporter{}, noopKeyResolver{} |
| 91 | +} |
| 92 | + |
| 93 | +type noopJobReporter struct{} |
| 94 | + |
| 95 | +func NewNoopJobReporter() JobReporter { |
| 96 | + return &noopJobReporter{} |
| 97 | +} |
| 98 | + |
| 99 | +func (r *noopJobReporter) RegisterFunc(f func(ts time.Time, tx JobTx) bool) {} |
| 100 | +func (r *noopJobReporter) Tx(f func(JobTx)) {} |
| 101 | +func (r *noopJobReporter) TxAt(ts time.Time, f func(JobTx)) {} |
| 102 | +func (r *noopJobReporter) ReportRoomSessionID(v string) {} |
| 103 | +func (r *noopJobReporter) ReportKind(v JobKind) {} |
| 104 | +func (r *noopJobReporter) ReportStatus(v JobStatus) {} |
| 105 | +func (r *noopJobReporter) ReportDuration(v uint32) {} |
| 106 | +func (r *noopJobReporter) ReportDispatchedAt(v time.Time) {} |
| 107 | +func (r *noopJobReporter) ReportJoinedAt(v time.Time) {} |
| 108 | +func (r *noopJobReporter) ReportCompletedAt(v time.Time) {} |
0 commit comments