MCPcopy
hub / github.com/umputun/remark42 / Destination

Interface Destination

backend/app/notify/notify.go:28–32  ·  view source on GitHub ↗

Destination defines interface for a given destination service, like telegram, email and so on

Source from the content-addressed store, hash-verified

26
27// Destination defines interface for a given destination service, like telegram, email and so on
28type Destination interface {
29 fmt.Stringer
30 Send(context.Context, Request) error
31 SendVerification(context.Context, VerificationRequest) error
32}
33
34// Store defines the minimal interface accessing stored comments used by notifier
35type Store interface {

Callers 7

SendMethod · 0.65
buildAndSendMessageMethod · 0.65
SendVerificationMethod · 0.65
doMethod · 0.65
SendMethod · 0.65
SendMethod · 0.65
doMethod · 0.65

Implementers 5

Telegrambackend/app/notify/telegram.go
Emailbackend/app/notify/email.go
MockDestbackend/app/notify/notify_mock.go
Webhookbackend/app/notify/webhook.go
Slackbackend/app/notify/slack.go

Calls

no outgoing calls

Tested by

no test coverage detected