Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler interface { GetLatestBlocks(*gin.Context) GetBlockById(*gin.Context) GetTransactionByTxHash(*gin.Context) }
func NewHandlerV1Impl ¶
func NewHandlerV1Impl(config *config.Config, repo repository.EthereumIndexRepository) Handler
type ReqGetLatestBlocks ¶
type ReqGetLatestBlocks struct {
Limit uint16 `form:"limit,default=1" binding="required,min=1,max=1000"`
}
type RespGetBlockDetail ¶
type RespGetBlockDetail struct { BlockInfo Transactions []string `json:"transactions"` RespStatus }
type RespGetLatestBlocks ¶
type RespGetLatestBlocks struct { Blocks []BlockInfo `json:"blocks"` RespStatus }
type RespGetTransactionDetail ¶
type RespGetTransactionDetail struct { TransactionInfo Logs []TransactionEventLogInfo `json:"logs"` RespStatus }
type RespStatus ¶
type TransactionEventLogInfo ¶
Click to show internal directories.
Click to hide internal directories.