{"modulePath":"github.com/RedAFD/code-core","version":"v1.8.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package base\n\n## Types\n\n```go\ntype Notifier interface {\n\tRun()\n\n\tNotifyCreateRepository(doer *models.User, u *models.User, repo *models.Repository)\n\tNotifyMigrateRepository(doer *models.User, u *models.User, repo *models.Repository)\n\tNotifyDeleteRepository(doer *models.User, repo *models.Repository)\n\tNotifyForkRepository(doer *models.User, oldRepo, repo *models.Repository)\n\n\tNotifyNewIssue(*models.Issue)\n\tNotifyIssueChangeStatus(*models.User, *models.Issue, bool)\n\tNotifyIssueChangeMilestone(doer *models.User, issue *models.Issue)\n\tNotifyIssueChangeAssignee(doer *models.User, issue *models.Issue, removed bool)\n\tNotifyIssueChangeContent(doer *models.User, issue *models.Issue, oldContent string)\n\tNotifyIssueClearLabels(doer *models.User, issue *models.Issue)\n\tNotifyIssueChangeTitle(doer *models.User, issue *models.Issue, oldTitle string)\n\tNotifyIssueChangeLabels(doer *models.User, issue *models.Issue,\n\t\taddedLabels []*models.Label, removedLabels []*models.Label)\n\n\tNotifyNewPullRequest(*models.PullRequest)\n\tNotifyMergePullRequest(*models.PullRequest, *models.User, *git.Repository)\n\tNotifyPullRequestReview(*models.PullRequest, *models.Review, *models.Comment)\n\n\tNotifyCreateIssueComment(*models.User, *models.Repository,\n\t\t*models.Issue, *models.Comment)\n\tNotifyUpdateComment(*models.User, *models.Comment, string)\n\tNotifyDeleteComment(*models.User, *models.Comment)\n\n\tNotifyNewRelease(rel *models.Release)\n\tNotifyUpdateRelease(doer *models.User, rel *models.Release)\n\tNotifyDeleteRelease(doer *models.User, rel *models.Release)\n}\n```\nNotifier defines an interface to notify receiver\n\n```go\ntype NullNotifier struct {\n}\n```\nNullNotifier implements a blank notifier\n\n```go\nfunc (*NullNotifier) NotifyCreateIssueComment(doer *models.User, repo *models.Repository,\n\tissue *models.Issue, comment *models.Comment)\n```\nNotifyCreateIssueComment places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyCreateRepository(doer *models.User, u *models.User, repo *models.Repository)\n```\nNotifyCreateRepository places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyDeleteComment(doer *models.User, c *models.Comment)\n```\nNotifyDeleteComment places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyDeleteRelease(doer *models.User, rel *models.Release)\n```\nNotifyDeleteRelease places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyDeleteRepository(doer *models.User, repo *models.Repository)\n```\nNotifyDeleteRepository places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyForkRepository(doer *models.User, oldRepo, repo *models.Repository)\n```\nNotifyForkRepository places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyIssueChangeAssignee(doer *models.User, issue *models.Issue, removed bool)\n```\nNotifyIssueChangeAssignee places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyIssueChangeContent(doer *models.User, issue *models.Issue, oldContent string)\n```\nNotifyIssueChangeContent places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyIssueChangeLabels(doer *models.User, issue *models.Issue,\n\taddedLabels []*models.Label, removedLabels []*models.Label)\n```\nNotifyIssueChangeLabels places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue)\n```\nNotifyIssueChangeMilestone places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyIssueChangeStatus(doer *models.User, issue *models.Issue, isClosed bool)\n```\nNotifyIssueChangeStatus places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyIssueChangeTitle(doer *models.User, issue *models.Issue, oldTitle string)\n```\nNotifyIssueChangeTitle places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyIssueClearLabels(doer *models.User, issue *models.Issue)\n```\nNotifyIssueClearLabels places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User, baseRepo *git.Repository)\n```\nNotifyMergePullRequest places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyMigrateRepository(doer *models.User, u *models.User, repo *models.Repository)\n```\nNotifyMigrateRepository places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyNewIssue(issue *models.Issue)\n```\nNotifyNewIssue places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyNewPullRequest(pr *models.PullRequest)\n```\nNotifyNewPullRequest places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyNewRelease(rel *models.Release)\n```\nNotifyNewRelease places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.Review, comment *models.Comment)\n```\nNotifyPullRequestReview places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyUpdateComment(doer *models.User, c *models.Comment, oldContent string)\n```\nNotifyUpdateComment places a place holder function\n\n```go\nfunc (*NullNotifier) NotifyUpdateRelease(doer *models.User, rel *models.Release)\n```\nNotifyUpdateRelease places a place holder function\n\n```go\nfunc (*NullNotifier) Run()\n```\nRun places a place holder function\n\n","path":"github.com/RedAFD/code-core/modules/notification/base","name":"base","synopsis":"","isRedistributable":true}
