Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPaginationCount = 10
View Source
const DefaultPaginationStart = 0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct { HTTP *echo.Echo Validate *validator.Validate }
func (*API) GetPaginationParams ¶
func (api *API) GetPaginationParams(c echo.Context) (*PaginationParams, error)
GetPaginationParams parses and validates pagination params
type ErrorResponse ¶
type PaginationParams ¶
type PaginationResponse ¶
type PaginationResponse struct { PaginationParams Total int `json:"total"` }
type StakersResponse ¶
type StakersResponse struct { Result []*schema.StakingRecord `json:"result"` PaginationResponse }
type StakingResponse ¶
type StakingResponse struct {
schema.ValidatorsNumber
}
type SupplyResponse ¶
type SupplyResponse struct { schema.ACME Staked int64 `json:"staked"` Circulating int64 `json:"circulating"` TotalTokens float64 `json:"totalTokens"` MaxTokens float64 `json:"maxTokens"` StakedTokens float64 `json:"stakedTokens"` CirculatingTokens float64 `json:"circulatingTokens"` UpdatedAt *time.Time `json:"updatedAt"` }
Click to show internal directories.
Click to hide internal directories.