File size: 697 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package notification

import (
	"context"

	"github.com/target/goalert/auth/authlink"
	"github.com/target/goalert/gadb"
)

// A ResultReceiver processes notification responses.
type ResultReceiver interface {
	SetSendResult(ctx context.Context, res *SendResult) error

	Receive(ctx context.Context, callbackID string, result Result) error
	ReceiveSubject(ctx context.Context, providerID, subjectID, callbackID string, result Result) error
	AuthLinkURL(ctx context.Context, providerID, subjectID string, meta authlink.Metadata) (string, error)
	Start(context.Context, gadb.DestV1) error
	Stop(context.Context, gadb.DestV1) error

	IsKnownDest(ctx context.Context, dest gadb.DestV1) (bool, error)
}