Documentation
¶
Index ¶
- func ConfigureRoutes(g *gin.RouterGroup)
- func HandleGetEpoch(c *gin.Context)
- func HandleGetEpochLatest(c *gin.Context)
- func HandleGetEpochList(c *gin.Context)
- func HandleGetEpochStake(c *gin.Context)
- func HandleGetEpochStakeByAccount(c *gin.Context)
- func HandleGetEpochStakeByPool(c *gin.Context)
- type EpochResponse
- type EpochStakeResponse
- type GetEpochStakeUriParams
- type GetEpochUriParams
- type StakeAmount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureRoutes ¶
func ConfigureRoutes(g *gin.RouterGroup)
func HandleGetEpoch ¶
func HandleGetEpochLatest ¶
func HandleGetEpochList ¶
func HandleGetEpochStake ¶
Types ¶
type EpochResponse ¶
type EpochResponse struct { OutSum uint64 `json:"out_sum"` Fees uint64 `json:"fees"` TxCount uint32 `json:"tx_count"` BlockCount uint32 `json:"blk_count"` EpochNumber uint32 `json:"no"` StartTime *time.Time `json:"start_time"` EndTime *time.Time `json:"end_time"` }
func NewEpochResponse ¶
func NewEpochResponse(e *models.Epoch) *EpochResponse
type EpochStakeResponse ¶
type EpochStakeResponse struct {
Amount uint64 `json:"amount"`
}
func NewEpochStakeResponse ¶
func NewEpochStakeResponse(e *StakeAmount) *EpochStakeResponse
type GetEpochStakeUriParams ¶
type GetEpochStakeUriParams struct { Number uint32 `uri:"number" binding:"required"` Account string `uri:"account"` Pool string `uri:"pool"` }
URI params for GetEpochStake
type GetEpochUriParams ¶
type GetEpochUriParams struct {
Number uint32 `uri:"number" binding:"required"`
}
URI params for GetEpoch
type StakeAmount ¶
type StakeAmount struct {
Amount uint64
}
Click to show internal directories.
Click to hide internal directories.