response

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyStatus

type DependencyStatus struct {
	// 상태 (healthy, unhealthy, unknown)
	Status string `json:"status" example:"healthy"`
	// 응답 시간 (밀리초, 선택적)
	LatencyMs int64 `json:"latency_ms,omitempty" example:"5"`
	// 추가 메시지 (선택적)
	Message string `json:"message,omitempty" example:"정상 작동 중"`
}

DependencyStatus 의존성 상태 모델

type ErrorResponse

type ErrorResponse struct {
	// 오류에 대한 상세 메시지입니다.
	// 발생 원인과 해결을 위한 가이드를 포함할 수 있습니다.
	Message string `json:"message" example:"APP_KEY가 유효하지 않습니다.(ID:my-app)"`
}

ErrorResponse API 요청 처리 중 오류가 발생했을 때 반환되는 표준 응답 모델입니다.

type HealthResponse

type HealthResponse struct {
	// 서버 상태 (healthy, unhealthy)
	Status string `json:"status" example:"healthy"`
	// 서버 가동 시간 (초)
	Uptime int64 `json:"uptime" example:"3600"`
	// 의존성 상태 (선택적)
	Dependencies map[string]DependencyStatus `json:"dependencies,omitempty"`
}

HealthResponse 서버 상태 응답 모델

type SuccessResponse

type SuccessResponse struct {
	// 처리 결과 코드입니다.
	// 0은 성공을 의미하며, 그 외의 값은 정의된 에러 코드를 나타냅니다.
	ResultCode int `json:"result_code" example:"0"`
}

SuccessResponse API 요청이 성공적으로 처리되었을 때 반환되는 표준 응답 모델입니다.

type VersionResponse

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.24.0"`
}

VersionResponse 서버 버전 정보 응답 모델

Jump to

Keyboard shortcuts

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