transport

package
v0.0.0-...-3c98ef5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

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 {
	// 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) SendNewCulprit

func (t *IssueTrackerTransport) SendNewCulprit(ctx context.Context,
	subscription *sub_pb.Subscription, subject string, body string) (string, error)

SendNewCulprit 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) SendNewCulprit

func (t *NoopTransport) SendNewCulprit(ctx context.Context, subscription *sub_pb.Subscription, subject string, body string) (string, error)

SendNewCulprit implements Transport.

type Transport

type Transport interface {
	SendNewCulprit(ctx context.Context, subscription *sub_pb.Subscription, subject string, body string) (threadingReference string, err error)
}

Transport has implementations for issuetracker.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL