github.com/livekit/protocol@v1.39.3/observability/roomobs/gen_reporter_noop.go (about)

     1  // Code generated; DO NOT EDIT.
     2  
     3  package roomobs
     4  
     5  import (
     6  	"time"
     7  )
     8  
     9  var (
    10  	_ Reporter                   = (*noopReporter)(nil)
    11  	_ ProjectReporter            = (*noopProjectReporter)(nil)
    12  	_ RoomReporter               = (*noopRoomReporter)(nil)
    13  	_ RoomSessionReporter        = (*noopRoomSessionReporter)(nil)
    14  	_ ParticipantReporter        = (*noopParticipantReporter)(nil)
    15  	_ ParticipantSessionReporter = (*noopParticipantSessionReporter)(nil)
    16  	_ TrackReporter              = (*noopTrackReporter)(nil)
    17  )
    18  
    19  type noopKeyResolver struct{}
    20  
    21  func (noopKeyResolver) Resolve(string) {}
    22  func (noopKeyResolver) Reset()         {}
    23  
    24  type noopReporter struct{}
    25  
    26  func NewNoopReporter() Reporter {
    27  	return &noopReporter{}
    28  }
    29  
    30  func (r *noopReporter) WithProject(id string) ProjectReporter {
    31  	return &noopProjectReporter{}
    32  }
    33  
    34  func (r *noopReporter) WithDeferredProject() (ProjectReporter, KeyResolver) {
    35  	return &noopProjectReporter{}, noopKeyResolver{}
    36  }
    37  
    38  type noopProjectReporter struct{}
    39  
    40  func NewNoopProjectReporter() ProjectReporter {
    41  	return &noopProjectReporter{}
    42  }
    43  
    44  func (r *noopProjectReporter) RegisterFunc(f func(ts time.Time, tx ProjectTx) bool) {}
    45  func (r *noopProjectReporter) Tx(f func(ProjectTx))                                 {}
    46  func (r *noopProjectReporter) TxAt(ts time.Time, f func(ProjectTx))                 {}
    47  func (r *noopProjectReporter) WithRoom(name string) RoomReporter {
    48  	return &noopRoomReporter{}
    49  }
    50  func (r *noopProjectReporter) WithDeferredRoom() (RoomReporter, KeyResolver) {
    51  	return &noopRoomReporter{}, noopKeyResolver{}
    52  }
    53  
    54  type noopRoomReporter struct{}
    55  
    56  func NewNoopRoomReporter() RoomReporter {
    57  	return &noopRoomReporter{}
    58  }
    59  
    60  func (r *noopRoomReporter) RegisterFunc(f func(ts time.Time, tx RoomTx) bool) {}
    61  func (r *noopRoomReporter) Tx(f func(RoomTx))                                 {}
    62  func (r *noopRoomReporter) TxAt(ts time.Time, f func(RoomTx))                 {}
    63  func (r *noopRoomReporter) WithRoomSession(id string) RoomSessionReporter {
    64  	return &noopRoomSessionReporter{}
    65  }
    66  func (r *noopRoomReporter) WithDeferredRoomSession() (RoomSessionReporter, KeyResolver) {
    67  	return &noopRoomSessionReporter{}, noopKeyResolver{}
    68  }
    69  
    70  type noopRoomSessionReporter struct{}
    71  
    72  func NewNoopRoomSessionReporter() RoomSessionReporter {
    73  	return &noopRoomSessionReporter{}
    74  }
    75  
    76  func (r *noopRoomSessionReporter) RegisterFunc(f func(ts time.Time, tx RoomSessionTx) bool) {}
    77  func (r *noopRoomSessionReporter) Tx(f func(RoomSessionTx))                                 {}
    78  func (r *noopRoomSessionReporter) TxAt(ts time.Time, f func(RoomSessionTx))                 {}
    79  func (r *noopRoomSessionReporter) ReportStartTime(v time.Time)                              {}
    80  func (r *noopRoomSessionReporter) ReportEndTime(v time.Time)                                {}
    81  func (r *noopRoomSessionReporter) WithParticipant(identity string) ParticipantReporter {
    82  	return &noopParticipantReporter{}
    83  }
    84  func (r *noopRoomSessionReporter) WithDeferredParticipant() (ParticipantReporter, KeyResolver) {
    85  	return &noopParticipantReporter{}, noopKeyResolver{}
    86  }
    87  
    88  type noopParticipantReporter struct{}
    89  
    90  func NewNoopParticipantReporter() ParticipantReporter {
    91  	return &noopParticipantReporter{}
    92  }
    93  
    94  func (r *noopParticipantReporter) RegisterFunc(f func(ts time.Time, tx ParticipantTx) bool) {}
    95  func (r *noopParticipantReporter) Tx(f func(ParticipantTx))                                 {}
    96  func (r *noopParticipantReporter) TxAt(ts time.Time, f func(ParticipantTx))                 {}
    97  func (r *noopParticipantReporter) WithParticipantSession(id string) ParticipantSessionReporter {
    98  	return &noopParticipantSessionReporter{}
    99  }
   100  func (r *noopParticipantReporter) WithDeferredParticipantSession() (ParticipantSessionReporter, KeyResolver) {
   101  	return &noopParticipantSessionReporter{}, noopKeyResolver{}
   102  }
   103  
   104  type noopParticipantSessionReporter struct{}
   105  
   106  func NewNoopParticipantSessionReporter() ParticipantSessionReporter {
   107  	return &noopParticipantSessionReporter{}
   108  }
   109  
   110  func (r *noopParticipantSessionReporter) RegisterFunc(f func(ts time.Time, tx ParticipantSessionTx) bool) {
   111  }
   112  func (r *noopParticipantSessionReporter) Tx(f func(ParticipantSessionTx))                 {}
   113  func (r *noopParticipantSessionReporter) TxAt(ts time.Time, f func(ParticipantSessionTx)) {}
   114  func (r *noopParticipantSessionReporter) ReportRegion(v string)                           {}
   115  func (r *noopParticipantSessionReporter) ReportClientConnectTime(v uint16)                {}
   116  func (r *noopParticipantSessionReporter) ReportConnectResult(v ConnectionResult)          {}
   117  func (r *noopParticipantSessionReporter) ReportConnectionType(v ConnectionType)           {}
   118  func (r *noopParticipantSessionReporter) ReportOs(v ClientOS)                             {}
   119  func (r *noopParticipantSessionReporter) ReportDeviceModel(v string)                      {}
   120  func (r *noopParticipantSessionReporter) ReportBrowser(v string)                          {}
   121  func (r *noopParticipantSessionReporter) ReportSdkVersion(v string)                       {}
   122  func (r *noopParticipantSessionReporter) ReportCountry(v uint16)                          {}
   123  func (r *noopParticipantSessionReporter) ReportIspAsn(v uint32)                           {}
   124  func (r *noopParticipantSessionReporter) ReportStartTime(v time.Time)                     {}
   125  func (r *noopParticipantSessionReporter) ReportEndTime(v time.Time)                       {}
   126  func (r *noopParticipantSessionReporter) ReportDuration(v uint16)                         {}
   127  func (r *noopParticipantSessionReporter) ReportDurationMinutes(v uint8)                   {}
   128  func (r *noopParticipantSessionReporter) WithTrack(id string) TrackReporter {
   129  	return &noopTrackReporter{}
   130  }
   131  func (r *noopParticipantSessionReporter) WithDeferredTrack() (TrackReporter, KeyResolver) {
   132  	return &noopTrackReporter{}, noopKeyResolver{}
   133  }
   134  
   135  type noopTrackReporter struct{}
   136  
   137  func NewNoopTrackReporter() TrackReporter {
   138  	return &noopTrackReporter{}
   139  }
   140  
   141  func (r *noopTrackReporter) RegisterFunc(f func(ts time.Time, tx TrackTx) bool) {}
   142  func (r *noopTrackReporter) Tx(f func(TrackTx))                                 {}
   143  func (r *noopTrackReporter) TxAt(ts time.Time, f func(TrackTx))                 {}
   144  func (r *noopTrackReporter) ReportName(v string)                                {}
   145  func (r *noopTrackReporter) ReportKind(v TrackKind)                             {}
   146  func (r *noopTrackReporter) ReportType(v TrackType)                             {}
   147  func (r *noopTrackReporter) ReportSource(v TrackSource)                         {}
   148  func (r *noopTrackReporter) ReportMime(v MimeType)                              {}
   149  func (r *noopTrackReporter) ReportLayer(v uint32)                               {}
   150  func (r *noopTrackReporter) ReportDuration(v uint16)                            {}
   151  func (r *noopTrackReporter) ReportFrames(v uint16)                              {}
   152  func (r *noopTrackReporter) ReportSendBytes(v uint32)                           {}
   153  func (r *noopTrackReporter) ReportRecvBytes(v uint32)                           {}
   154  func (r *noopTrackReporter) ReportSendPackets(v uint32)                         {}
   155  func (r *noopTrackReporter) ReportRecvPackets(v uint32)                         {}
   156  func (r *noopTrackReporter) ReportPacketsLost(v uint32)                         {}
   157  func (r *noopTrackReporter) ReportScore(v float32)                              {}