Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSystemHandler ¶
func NewSystemHandler(e *echo.Echo, redisAddress, grpcAddress string, logger log.Logger, us mvc.ChainInfoUsecase)
NewSystemHandler will initialize the /debug/ppof resources endpoint
Types ¶
type JsonResponse ¶
type JsonResponse struct { Result struct { SyncInfo struct { LatestBlockHeight string `json:"latest_block_height"` CatchingUp bool `json:"catching_up"` } `json:"sync_info"` } `json:"result"` }
Parse the response from the GRPC Gateway status endpoint
type SystemHandler ¶
type SystemHandler struct { CIUsecase mvc.ChainInfoUsecase // contains filtered or unexported fields }
func (*SystemHandler) GetHealthStatus ¶
func (h *SystemHandler) GetHealthStatus(c echo.Context) error
GetHealthStatus handles health check requests for both GRPC gateway and Redis
Click to show internal directories.
Click to hide internal directories.