Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowedApplication ¶
type AllowedApplication struct {
ID string
Title string
Description string
DefaultNotifierID string
AppKey string
}
AllowedApplication
type ErrorResponse ¶ added in v1.0.0
type ErrorResponse struct {
// 에러 메시지 (에러 발생 원인 및 해결 방법 포함)
Message string `json:"message" example:"APP_KEY가 유효하지 않습니다.(ID:my-app)"`
}
ErrorResponse 에러 응답 모델
type HealthResponse ¶ added in v1.0.0
type HealthResponse struct {
// 서버 상태 (healthy, unhealthy)
Status string `json:"status" example:"healthy"`
// 서버 가동 시간 (초)
Uptime int64 `json:"uptime" example:"3600"`
}
HealthResponse 서버 상태 응답 모델
type NotifyMessage ¶
type NotifyMessage struct {
// 애플리케이션 ID (설정 파일의 allowed_applications에 등록된 ID)
ApplicationID string `json:"application_id" form:"application_id" query:"application_id" binding:"required" example:"my-app"`
// 알림 메시지 내용 (최대 4096자, 마크다운 형식 지원)
Message string `` /* 139-byte string literal not displayed */
// 에러 발생 여부 (true인 경우 에러 알림으로 표시됨)
ErrorOccurred bool `json:"error_occurred" form:"error_occurred" query:"error_occurred" example:"false"`
}
NotifyMessage 알림 메시지 요청 모델
type SuccessResponse ¶ added in v1.0.0
type SuccessResponse struct {
// 결과 코드 (0: 성공, 0이 아닌 값: 실패)
ResultCode int `json:"result_code" example:"0"`
}
SuccessResponse 성공 응답 모델
type VersionResponse ¶ added in v1.0.0
type VersionResponse struct {
// Git 커밋 해시
Version string `json:"version" example:"abc1234"`
// 빌드 날짜 (UTC)
BuildDate string `json:"build_date" example:"2025-12-01T14:00:00Z"`
// 빌드 번호
BuildNumber string `json:"build_number" example:"100"`
// Go 버전
GoVersion string `json:"go_version" example:"go1.23.4"`
}
VersionResponse 서버 버전 정보 응답 모델
Click to show internal directories.
Click to hide internal directories.