http

package
v21.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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