Documentation
¶
Overview ¶
Package system 시스템 엔드포인트 핸들러를 제공합니다.
헬스체크, 버전 정보 등 인증이 필요 없는 시스템 수준의 API를 처리합니다.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler 시스템 엔드포인트 핸들러 (헬스체크, 버전 정보)
func New ¶
func New(healthChecker contract.NotificationHealthChecker, buildInfo version.Info) *Handler
New Handler 인스턴스를 생성합니다.
func (*Handler) HealthCheckHandler ¶
HealthCheckHandler godoc @Summary 서버 헬스체크 @Description 서버와 외부 의존성의 상태를 확인합니다. @Description 인증 없이 호출 가능하며, 모니터링 시스템에서 사용됩니다. @Description @Description 응답 필드: @Description - status: 전체 서버 상태 (healthy, unhealthy) @Description - uptime: 서버 가동 시간(초) @Description - dependencies: 외부 의존성별 상태 (notification_service 등) @Tags System @Produce json @Success 200 {object} system.HealthResponse "헬스체크 결과" @Router /health [get]
func (*Handler) VersionHandler ¶
VersionHandler godoc @Summary 서버 버전 정보 @Description 서버의 Git 커밋 해시, 빌드 날짜, 빌드 번호, Go 버전을 반환합니다. @Description 디버깅 및 배포 버전 확인에 사용됩니다. @Tags System @Produce json @Success 200 {object} system.VersionResponse "버전 정보" @Router /version [get]