Something went wrong. Try again.
forked from tangled.org/core
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445package notify
import ( "context"
"tangled.sh/tangled.sh/core/appview/db")
type Notifier interface { NewRepo(ctx context.Context, repo *db.Repo)
NewStar(ctx context.Context, star *db.Star) DeleteStar(ctx context.Context, star *db.Star)
NewIssue(ctx context.Context, issue *db.Issue)
NewFollow(ctx context.Context, follow *db.Follow) DeleteFollow(ctx context.Context, follow *db.Follow)
NewPull(ctx context.Context, pull *db.Pull) NewPullComment(ctx context.Context, comment *db.PullComment)
UpdateProfile(ctx context.Context, profile *db.Profile)}
// BaseNotifier is a listener that does nothingtype BaseNotifier struct{}
var _ Notifier = &BaseNotifier{}
func (m *BaseNotifier) NewRepo(ctx context.Context, repo *db.Repo) {}
func (m *BaseNotifier) NewStar(ctx context.Context, star *db.Star) {}func (m *BaseNotifier) DeleteStar(ctx context.Context, star *db.Star) {}
func (m *BaseNotifier) NewIssue(ctx context.Context, issue *db.Issue) {}
func (m *BaseNotifier) NewFollow(ctx context.Context, follow *db.Follow) {}func (m *BaseNotifier) DeleteFollow(ctx context.Context, follow *db.Follow) {}
func (m *BaseNotifier) NewPull(ctx context.Context, pull *db.Pull) {}func (m *BaseNotifier) NewPullComment(ctx context.Context, comment *db.PullComment) {}
func (m *BaseNotifier) UpdateProfile(ctx context.Context, profile *db.Profile) {}