MCPcopy Index your code
hub / github.com/coder/coder / LogEntry

Method LogEntry

vpn/tunnel.go:292–305  ·  view source on GitHub ↗
(_ context.Context, e slog.SinkEntry)

Source from the content-addressed store, hash-verified

290var _ slog.Sink = &Tunnel{}
291
292func (t *Tunnel) LogEntry(_ context.Context, e slog.SinkEntry) {
293 msg := &TunnelMessage{
294 Msg: &TunnelMessage_Log{
295 Log: sinkEntryToPb(e),
296 },
297 }
298 select {
299 case <-t.updater.ctx.Done():
300 return
301 case <-t.ctx.Done():
302 return
303 case t.sendCh <- msg:
304 }
305}
306
307func (*Tunnel) Sync() {}
308

Callers

nothing calls this directly

Calls 2

sinkEntryToPbFunction · 0.85
DoneMethod · 0.45

Tested by

no test coverage detected