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

Struct santaHandler

coderd/notifications/manager_test.go:230–233  ·  view source on GitHub ↗

santaHandler only dispatches nice messages.

Source from the content-addressed store, hash-verified

228
229// santaHandler only dispatches nice messages.
230type santaHandler struct {
231 naughty atomic.Int32
232 nice atomic.Int32
233}
234
235func (s *santaHandler) Dispatcher(payload types.MessagePayload, _, _ string, _ template.FuncMap) (dispatch.DeliveryFunc, error) {
236 return func(_ context.Context, _ uuid.UUID) (retryable bool, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected