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

Interface Pubsub

coderd/database/pubsub/pubsub.go:47–51  ·  view source on GitHub ↗

Pubsub is a generic interface for broadcasting and receiving messages. Implementors should assume high-availability with the backing implementation.

Source from the content-addressed store, hash-verified

45// Pubsub is a generic interface for broadcasting and receiving messages.
46// Implementors should assume high-availability with the backing implementation.
47type Pubsub interface {
48 Subscriber
49 Publisher
50 Close() error
51}
52
53// msgOrErr either contains a message or an error
54type msgOrErr struct {

Callers 8

NewDBFunction · 0.95
TestUsageEventsTriggerFunction · 0.65
PGLocksMethod · 0.65
testSQLDBFunction · 0.65
GetAIProviderKeysMethod · 0.65

Implementers 15

APIcoderd/coderd.go
fakeTelemetryReportercoderd/workspaceagents_test.go
mockPubsubcoderd/workspaceupdates_test.go
subcoderd/workspaceupdates.go
updatesProvidercoderd/workspaceupdates.go
fakeAgentProvidercoderd/workspaceagents_internal_test.g
channelClosercoderd/workspaceagents_internal_test.g
fakePingerClosercoderd/workspaceagentsrpc_internal_tes
ServerTailnetcoderd/tailnet.go
netConnClosercoderd/tailnet.go
instrumentedConncoderd/tailnet.go
MultiAgentControllercoderd/tailnet.go

Calls

no outgoing calls

Tested by

no test coverage detected