Something went wrong. Try again.
Monorepo for Tangled — https://tangled.org forked from tangled.org/core
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061package notify
import ( "context"
"tangled.org/core/appview/models")
type Notifier interface { NewRepo(ctx context.Context, repo *models.Repo)
NewStar(ctx context.Context, star *models.Star) DeleteStar(ctx context.Context, star *models.Star)
NewIssue(ctx context.Context, issue *models.Issue) NewIssueComment(ctx context.Context, comment *models.IssueComment) NewIssueClosed(ctx context.Context, issue *models.Issue)
NewFollow(ctx context.Context, follow *models.Follow) DeleteFollow(ctx context.Context, follow *models.Follow)
NewPull(ctx context.Context, pull *models.Pull) NewPullComment(ctx context.Context, comment *models.PullComment) NewPullMerged(ctx context.Context, pull *models.Pull) NewPullClosed(ctx context.Context, pull *models.Pull)
UpdateProfile(ctx context.Context, profile *models.Profile)
NewString(ctx context.Context, s *models.String) EditString(ctx context.Context, s *models.String) DeleteString(ctx context.Context, did, rkey string)}
// BaseNotifier is a listener that does nothingtype BaseNotifier struct{}
var _ Notifier = &BaseNotifier{}
func (m *BaseNotifier) NewRepo(ctx context.Context, repo *models.Repo) {}
func (m *BaseNotifier) NewStar(ctx context.Context, star *models.Star) {}func (m *BaseNotifier) DeleteStar(ctx context.Context, star *models.Star) {}
func (m *BaseNotifier) NewIssue(ctx context.Context, issue *models.Issue) {}func (m *BaseNotifier) NewIssueComment(ctx context.Context, comment *models.IssueComment) {}func (m *BaseNotifier) NewIssueClosed(ctx context.Context, issue *models.Issue) {}
func (m *BaseNotifier) NewFollow(ctx context.Context, follow *models.Follow) {}func (m *BaseNotifier) DeleteFollow(ctx context.Context, follow *models.Follow) {}
func (m *BaseNotifier) NewPull(ctx context.Context, pull *models.Pull) {}func (m *BaseNotifier) NewPullComment(ctx context.Context, models *models.PullComment) {}func (m *BaseNotifier) NewPullMerged(ctx context.Context, pull *models.Pull) {}func (m *BaseNotifier) NewPullClosed(ctx context.Context, pull *models.Pull) {}
func (m *BaseNotifier) UpdateProfile(ctx context.Context, profile *models.Profile) {}
func (m *BaseNotifier) NewString(ctx context.Context, s *models.String) {}func (m *BaseNotifier) EditString(ctx context.Context, s *models.String) {}func (m *BaseNotifier) DeleteString(ctx context.Context, did, rkey string) {}