mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[PR #321] [MERGED] feat: notifiers #914
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#914
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/certimate-go/certimate/pull/321
Author: @fudiwei
Created: 11/9/2024
Status: ✅ Merged
Merged: 11/11/2024
Merged by: @usual2970
Base:
main← Head:feat/notifier📝 Commits (10+)
83674e4refactor: ensure compile-time check forUploaderimplementations76fc47aMerge branch 'main' into feat/notifier551b06bfeat: notifier94579d6refactor: clean code150b666refactor: maps utils5d93334refactor: re-implement logic of notify8b04e96feat: new UI for email notify settings44497a0feat: new UI for notify settings8fecebcfeat: show loading button when pushing test notifications1bedb31fix: fix typo📊 Changes
42 files changed (+1737 additions, -1013 deletions)
View changed files
📝
go.mod(+1 -1)📝
internal/domain/domains.go(+8 -36)📝
internal/domain/notify.go(+3 -3)📝
internal/domain/setting.go(+1 -1)📝
internal/notify/expire.go(+22 -23)➕
internal/notify/factory.go(+66 -0)➖
internal/notify/mail.go(+0 -56)📝
internal/notify/notify.go(+27 -163)📝
internal/notify/service.go(+4 -9)➕
internal/pkg/core/notifier/notifier.go(+23 -0)➕
internal/pkg/core/notifier/providers/bark/bark.go(+48 -0)➕
internal/pkg/core/notifier/providers/dingtalk/dingtalk.go(+45 -0)➕
internal/pkg/core/notifier/providers/email/email.go(+95 -0)➕
internal/pkg/core/notifier/providers/email/email_test.go(+51 -0)➕
internal/pkg/core/notifier/providers/lark/lark.go(+41 -0)➕
internal/pkg/core/notifier/providers/serverchan/serverchan.go(+55 -0)➕
internal/pkg/core/notifier/providers/telegram/telegram.go(+47 -0)➕
internal/pkg/core/notifier/providers/webhook/webhook.go(+43 -0)📝
internal/pkg/core/uploader/providers/aliyun-cas/aliyun_cas.go(+7 -0)📝
internal/pkg/core/uploader/providers/aliyun-slb/aliyun_slb.go(+7 -0)...and 22 more files
📄 Description
该 PR 包含以下内容变更:
/internal/pkg/core/notifier/目录下。【备注】
关于 Notifier
与 #227 中实现的 Uploader 类似,旨在:
/internal/pkg/core/notifier/providers/email/email_test.go);/pkg/包下,便于日后作为类库对外暴露。为了简化目前的开发工作,大部分新的 Notifier 仍然基于原有的 nikoksr/notify 实现,只是多了一层封装。但日后若接入更多 nikoksr/notify 未提供的渠道、或需要彻底废弃 nikoksr/notify 时,可平滑迁移。
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.