MCPcopy
hub / github.com/cloudflare/cloudflared / sendEvent

Method sendEvent

connection/observer.go:101–108  ·  view source on GitHub ↗
(e Event)

Source from the content-addressed store, hash-verified

99}
100
101func (o *Observer) sendEvent(e Event) {
102 select {
103 case o.tunnelEventChan <- e:
104 break
105 default:
106 o.log.Warn().Msg("observer channel buffer is full")
107 }
108}
109
110func (o *Observer) dispatchEvents() {
111 var sinks []EventSink

Callers 6

sendRegisteringEventMethod · 0.95
sendConnectedEventMethod · 0.95
SendURLMethod · 0.95
SendReconnectMethod · 0.95
SendDisconnectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected