Documentation ¶
Overview ¶
Package service NOTES
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service do all the data service's work
func (*Service) HealthyHandler ¶
func (s *Service) HealthyHandler(w http.ResponseWriter, r *http.Request)
HealthyHandler livenessProbe 健康检查
func (*Service) Healthz ¶
func (s *Service) Healthz(w http.ResponseWriter, req *http.Request)
Healthz check whether the service is healthy.
func (*Service) ListenAndServeRest ¶
ListenAndServeRest listen and serve the restful server
func (*Service) ReadyHandler ¶
func (s *Service) ReadyHandler(w http.ResponseWriter, r *http.Request)
ReadyHandler ReadinessProbe 健康检查
Click to show internal directories.
Click to hide internal directories.