Documentation
¶
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
}
func NewHandler ¶
type HealthzResponse ¶
type HealthzResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
HealthzResponse health check response
type MetricsResponse ¶
type MetricsResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
MetricsResponse metrics response
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svcCtx *svc.ServiceContext) *Service
func (*Service) Healthz ¶
func (s *Service) Healthz(ctx context.Context, req *HealthzRequest) (*HealthzResponse, error)
Healthz returns health check status
func (*Service) Metrics ¶
func (s *Service) Metrics(ctx context.Context, req *MetricsRequest) (*MetricsResponse, error)
Metrics returns system metrics
func (*Service) Status ¶
func (s *Service) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error)
Status returns detailed system status
type StatusResponse ¶
type StatusResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data map[string]interface{} `json:"data"`
}
StatusResponse status response
Click to show internal directories.
Click to hide internal directories.