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

Struct fakePubsub

coderd/database/pubsub/watchdog_test.go:133–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133type fakePubsub struct {
134 pubs chan string
135 subs chan subscribe
136}
137
138func (f *fakePubsub) Subscribe(event string, listener pubsub.Listener) (func(), error) {
139 f.subs <- subscribe{event, listener}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected