Documentation
¶
Index ¶
Constants ¶
View Source
const (
BASE_PATH = "https://issuetracker.googleapis.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IssueTrackerTransport ¶
type IssueTrackerTransport struct { SendNewNotificationSuccess metrics2.Counter SendNewNotificationFail metrics2.Counter // contains filtered or unexported fields }
IssueTrackerTransport implements Transport using the issue tracker API.
func NewIssueTrackerTransport ¶
func NewIssueTrackerTransport(ctx context.Context, cfg *config.CulpritNotifyConfig) (*IssueTrackerTransport, error)
NewIssueTrackerTransport returns a new IssueTrackerTransport.
func (*IssueTrackerTransport) SendNewNotification ¶
func (t *IssueTrackerTransport) SendNewNotification(ctx context.Context, subscription *sub_pb.Subscription, subject string, body string) (string, error)
SendNewNotification implements Transport.
type NoopTransport ¶
type NoopTransport struct { }
NoopTransport implements Transport by doing nothing.
func NewNoopTransport ¶
func NewNoopTransport() *NoopTransport
NewNoopTransport returns a new EmailService instance.
func (*NoopTransport) SendNewNotification ¶
func (t *NoopTransport) SendNewNotification(ctx context.Context, subscription *sub_pb.Subscription, subject string, body string) (string, error)
SendNewNotification implements Transport.
Click to show internal directories.
Click to hide internal directories.