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

Struct NoopWebpusher

coderd/webpush/webpush.go:465–467  ·  view source on GitHub ↗

NoopWebpusher is a Dispatcher that always fails, returning Msg as the error. It is used as a fallback when VAPID key setup fails. The underlying error is not included to avoid leaking internal details (e.g. database errors) in API responses; it is logged at the call site instead.

Source from the content-addressed store, hash-verified

463// details (e.g. database errors) in API responses; it is logged at
464// the call site instead.
465type NoopWebpusher struct {
466 Msg string
467}
468
469func (n *NoopWebpusher) Dispatch(context.Context, uuid.UUID, codersdk.WebpushMessage) error {
470 return xerrors.New(n.Msg)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected