Documentation ¶
Index ¶
Constants ¶
View Source
const CacheBlocksCount = time.Duration(10)
Blocks cache helpers
Variables ¶
This section is empty.
Functions ¶
func ApplyRoutes ¶
func ApplyRoutes(r *gin.RouterGroup)
ApplyRoutes applies router to the gin Engine
func GetBlockTransactions ¶
Get list of transactions by block height
Types ¶
type CacheBlocksData ¶
type CacheBlocksData struct { Blocks []models.Block Pagination tools.Pagination }
type GetBlockRequest ¶
type GetBlockRequest struct {
ID string `uri:"height" binding:"numeric"`
}
TODO: replace string to int
type GetBlocksRequest ¶
type GetBlocksRequest struct {
Page string `form:"page" binding:"omitempty,numeric"`
}
TODO: replace string to int
Click to show internal directories.
Click to hide internal directories.