Documentation ¶
Index ¶
- Constants
- func ApplyRoutes(r *gin.RouterGroup)
- func GetAggregatedValidators(c *gin.Context)
- func GetDelegators(c *gin.Context)
- func GetValidator(c *gin.Context)
- func GetValidatorTransactions(c *gin.Context)
- type CacheValidatorsData
- type GetAggregatedValidatorRequest
- type GetValidatorRequest
- type GetValidatorTransactionsRequest
Constants ¶
View Source
const CacheBlocksCount = time.Duration(15)
cache time
Variables ¶
This section is empty.
Functions ¶
func ApplyRoutes ¶
func ApplyRoutes(r *gin.RouterGroup)
ApplyRoutes applies router to the gin Engine
func GetAggregatedValidators ¶
func GetValidatorTransactions ¶
Get list of transaction by validator public key
Types ¶
type CacheValidatorsData ¶
type CacheValidatorsData struct { Validators []models.Validator Pagination tools.Pagination }
type GetValidatorRequest ¶
type GetValidatorRequest struct {
PublicKey string `uri:"publicKey" binding:"required,noahPubKey"`
}
type GetValidatorTransactionsRequest ¶
type GetValidatorTransactionsRequest struct { Page string `form:"page" binding:"omitempty,numeric"` StartBlock *string `form:"startblock" binding:"omitempty,numeric"` EndBlock *string `form:"endblock" binding:"omitempty,numeric"` }
TODO: replace string to int
Click to show internal directories.
Click to hide internal directories.