handler

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package handler 는 알림 채널 API 다(관리자 전용 — /api/v1/admin/notifications).

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL