Documentation
¶
Overview ¶
Package handler 는 알림 채널 API 다(관리자 전용 — /api/v1/admin/notifications).
Index ¶
- type NotificationHandler
- func (h *NotificationHandler) CreateChannel(c echo.Context) error
- func (h *NotificationHandler) DeleteChannel(c echo.Context) error
- func (h *NotificationHandler) GetChannel(c echo.Context) error
- func (h *NotificationHandler) ListChannels(c echo.Context) error
- func (h *NotificationHandler) ListEvents(c echo.Context) error
- func (h *NotificationHandler) ListHistory(c echo.Context) error
- func (h *NotificationHandler) RegisterRoutes(g *echo.Group)
- func (h *NotificationHandler) TestChannel(c echo.Context) error
- func (h *NotificationHandler) UpdateChannel(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationHandler ¶
type NotificationHandler struct {
// contains filtered or unexported fields
}
NotificationHandler 는 채널 CRUD · 테스트 전송 · 발송 이력 · 이벤트 목록이다. 응답에는 채널의 비밀 (봇 토큰 · 웹훅 URL · SMTP 비밀번호)을 싣지 않는다 — secret_set 과 secret_hint 만.
func NewNotificationHandler ¶
func NewNotificationHandler(channels *usecase.ChannelService, sendTest *usecase.SendTest, deliveries *usecase.ListDeliveries) *NotificationHandler
func (*NotificationHandler) CreateChannel ¶
func (h *NotificationHandler) CreateChannel(c echo.Context) error
func (*NotificationHandler) DeleteChannel ¶
func (h *NotificationHandler) DeleteChannel(c echo.Context) error
func (*NotificationHandler) GetChannel ¶
func (h *NotificationHandler) GetChannel(c echo.Context) error
func (*NotificationHandler) ListChannels ¶
func (h *NotificationHandler) ListChannels(c echo.Context) error
func (*NotificationHandler) ListEvents ¶
func (h *NotificationHandler) ListEvents(c echo.Context) error
func (*NotificationHandler) ListHistory ¶
func (h *NotificationHandler) ListHistory(c echo.Context) error
func (*NotificationHandler) RegisterRoutes ¶
func (h *NotificationHandler) RegisterRoutes(g *echo.Group)
func (*NotificationHandler) TestChannel ¶
func (h *NotificationHandler) TestChannel(c echo.Context) error
TestChannel 은 테스트 메시지를 보낸다. 발송이 실패해도 200 이다 — 결과(status · error)가 응답이다.
func (*NotificationHandler) UpdateChannel ¶
func (h *NotificationHandler) UpdateChannel(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.