MCPcopy
hub / github.com/tailscale/tailscale / New

Function New

util/eventbus/bus.go:48–48  ·  view source on GitHub ↗

New returns a new bus with default options. It is equivalent to calling [NewWithOptions] with zero [BusOptions].

()

Source from the content-addressed store, hash-verified

46// New returns a new bus with default options. It is equivalent to
47// calling [NewWithOptions] with zero [BusOptions].
48func New() *Bus { return NewWithOptions(BusOptions{}) }
49
50// NewWithOptions returns a new [Bus] with the specified [BusOptions].
51// Use [Bus.Client] to construct clients on the bus.

Callers 15

TestRouterStatesFunction · 0.92
TestNewConnFunction · 0.92
TestDeviceStartStopFunction · 0.92
newTestConnAndRegistryFunction · 0.92
runMonitorFunction · 0.92
checkDerpFunction · 0.92
runTS2021Function · 0.92
runNetcheckFunction · 0.92
TestLookupFunction · 0.92
NewServerFunction · 0.92
TestMonitorStartCloseFunction · 0.92

Calls 1

NewWithOptionsFunction · 0.85

Tested by 15

TestRouterStatesFunction · 0.74
TestNewConnFunction · 0.74
TestDeviceStartStopFunction · 0.74
newTestConnAndRegistryFunction · 0.74
TestLookupFunction · 0.74
TestMonitorStartCloseFunction · 0.74
TestMonitorJustCloseFunction · 0.74
TestMonitorInjectEventFunction · 0.74
newTestClientFunction · 0.74
TestNodeBackendReadinessFunction · 0.74