handler

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckParams added in v0.1.2

func CheckParams(echoCtx echo.Context) (debug bool, chainId *int, rpcUrl string)

func ConvertStrRespToInt64

func ConvertStrRespToInt64(strNumber string) (value int64)

func ConvertStrRespToUInt64

func ConvertStrRespToUInt64(strNumber string) (value uint64)

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 GetLatestBlockTimestamp(echoCtx echo.Context, rpcUrl string) (timestamp uint64, err error)

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.

Jump to

Keyboard shortcuts

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