Documentation ¶
Index ¶
- func CheckParams(echoCtx echo.Context) (debug bool, chainId *int, rpcUrl string)
- func ConvertStrRespToInt64(strNumber string) (value int64)
- func ConvertStrRespToUInt64(strNumber string) (value uint64)
- func DbCleanHandler(echoCtx echo.Context) error
- func GetLatestBlockInfo(echoCtx echo.Context, rpcUrl string) (resp model.BlockByNumberResponse, err error)
- func GetLatestBlockTimestamp(echoCtx echo.Context, rpcUrl string) (timestamp uint64, err error)
- func PerformRemoteCall(echoCtx echo.Context, request *model.RPCRequest, rpcUrl string) (resp string, err error)
- func PerformRemoteCallForTimelyEndpoints(echoCtx echo.Context, request *model.RPCRequest, rpcUrl string) (respObj model.EphemeralRequest, err error)
- func PostHandler(echoCtx echo.Context) error
- func RestoreOriginalId(request *model.RPCRequest, resp string) (newResp string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckParams ¶ added in v0.1.2
func ConvertStrRespToInt64 ¶
func ConvertStrRespToUInt64 ¶
func DbCleanHandler ¶
func DbCleanHandler(echoCtx echo.Context) error
func GetLatestBlockInfo ¶
func GetLatestBlockInfo(echoCtx echo.Context, rpcUrl string) (resp model.BlockByNumberResponse, err error)
func GetLatestBlockTimestamp ¶
func PerformRemoteCall ¶
func PerformRemoteCall(echoCtx echo.Context, request *model.RPCRequest, rpcUrl string) (resp string, err error)
func PerformRemoteCallForTimelyEndpoints ¶
func PerformRemoteCallForTimelyEndpoints(echoCtx echo.Context, request *model.RPCRequest, rpcUrl string) (respObj model.EphemeralRequest, err error)
func PostHandler ¶
func PostHandler(echoCtx echo.Context) error
func RestoreOriginalId ¶ added in v0.1.2
func RestoreOriginalId(request *model.RPCRequest, resp string) (newResp string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.