MCPcopy Create free account
hub / github.com/coder/coder / NewNoopEnqueuer

Function NewNoopEnqueuer

coderd/notifications/enqueuer.go:219–221  ·  view source on GitHub ↗

NewNoopEnqueuer builds a NoopEnqueuer which is used to fulfill the contract for enqueuing notifications, if ExperimentNotifications is not set.

()

Source from the content-addressed store, hash-verified

217
218// NewNoopEnqueuer builds a NoopEnqueuer which is used to fulfill the contract for enqueuing notifications, if ExperimentNotifications is not set.
219func NewNoopEnqueuer() *NoopEnqueuer {
220 return &NoopEnqueuer{}
221}
222
223func (*NoopEnqueuer) Enqueue(context.Context, uuid.UUID, uuid.UUID, map[string]string, string, ...uuid.UUID) ([]uuid.UUID, error) {
224 // nolint:nilnil // irrelevant.

Callers 15

NewFunction · 0.92
NewFunction · 0.92
setupFunction · 0.92
ServerMethod · 0.92
TestWorkspaceAutobuildFunction · 0.92
TestPrebuildsAutobuildFunction · 0.92
TestWorkspacesFilteringFunction · 0.92
TestTemplatesFunction · 0.92
newNoopEnqueuerFunction · 0.92

Calls

no outgoing calls

Tested by 14

setupFunction · 0.74
TestWorkspaceAutobuildFunction · 0.74
TestPrebuildsAutobuildFunction · 0.74
TestWorkspacesFilteringFunction · 0.74
TestTemplatesFunction · 0.74
newNoopEnqueuerFunction · 0.74
TestTemplateTTLFunction · 0.74