Documentation ¶
Index ¶
- func NewGetByEntityUidHttpHandler(db *store.Store, c *client.Client) *getByEntityUidHttpHandler
- func NewGetByEntityUidUseCase(db *store.Store) *getByEntityUidUseCase
- func NewGetByHeightHttpHandler(db *store.Store, c *client.Client) *getByHeightHttpHandler
- func NewGetByHeightUseCase(db *store.Store) *getByHeightUseCase
- func NewGetForMinHeightHttpHandler(db *store.Store, c *client.Client) *getForMinHeightHttpHandler
- func NewGetForMinHeightUseCase(db *store.Store) *getForMinHeightUseCase
- func NewGetSharesForAllHttpHandler(db *store.Store, c *client.Client) *getSharesForAllHttpHandler
- func NewGetSharesForAllUseCase(db *store.Store) *getSharesForAllUseCase
- func NewGetSharesHttpHandler(db *store.Store, c *client.Client) *getSharesHttpHandler
- func NewGetSharesUseCase(db *store.Store) *getSharesUseCase
- func NewGetUptimeHttpHandler(db *store.Store, c *client.Client) *getUptimeHttpHandler
- func NewGetUptimeUseCase(db *store.Store) *getUptimeUseCase
- func NewGetVotingPowerForAllHttpHandler(db *store.Store, c *client.Client) *getVotingPowerForAllHttpHandler
- func NewGetVotingPowerForAllUseCase(db *store.Store) *getVotingPowerForAllUseCase
- func NewGetVotingPowerHttpHandler(db *store.Store, c *client.Client) *getVotingPowerHttpHandler
- func NewGetVotingPowerUseCase(db *store.Store) *getVotingPowerUseCase
- type AggDetailsView
- type AggListView
- type GetByEntityUidRequest
- type GetByHeightRequest
- type GetForMinHeightRequest
- type GetSharesForAllRequest
- type GetSharesRequest
- type GetUptimeRequest
- type GetVotingPowerForAllRequest
- type Request
- type SeqListView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetByHeightUseCase ¶
func NewGetSharesHttpHandler ¶
func NewGetSharesUseCase ¶
func NewGetUptimeHttpHandler ¶
func NewGetUptimeUseCase ¶
Types ¶
type AggDetailsView ¶
type AggDetailsView struct { *model.Model *model.Aggregate EntityUID string `json:"entity_uid"` RecentAddress string `json:"recent_address"` RecentVotingPower int64 `json:"recent_voting_power"` RecentAsValidatorHeight int64 `json:"recent_as_validator_height"` RecentProposedHeight int64 `json:"recent_proposed_height"` AccumulatedProposedCount int64 `json:"accumulated_proposed_count"` Uptime float64 `json:"uptime"` RecentDelegations []model.DelegationSeq `json:"recent_delegations"` RecentDebondingDelegations []model.DebondingDelegationSeq `json:"recent_debonding_delegations"` }
func ToAggDetailsView ¶
func ToAggDetailsView(m model.ValidatorAgg, currDs []model.DelegationSeq, recDds []model.DebondingDelegationSeq) *AggDetailsView
type AggListView ¶
type AggListView struct {
Items []model.ValidatorAgg `json:"items"`
}
func ToAggListView ¶
func ToAggListView(ms []model.ValidatorAgg) *AggListView
type GetByEntityUidRequest ¶
type GetByEntityUidRequest struct {
EntityUID string `form:"entity_uid" binding:"required"`
}
type GetByHeightRequest ¶
type GetByHeightRequest struct {
Height *int64 `form:"height" binding:"-"`
}
type GetForMinHeightRequest ¶
type GetForMinHeightRequest struct {
Height *int64 `uri:"height" binding:"required"`
}
type GetSharesForAllRequest ¶
type GetSharesForAllRequest struct {}
type GetSharesRequest ¶
type GetSharesRequest struct {}
type GetUptimeRequest ¶
type SeqListView ¶
type SeqListView struct {
Items []model.ValidatorSeq `json:"items"`
}
func ToSeqListView ¶
func ToSeqListView(ms []model.ValidatorSeq) *SeqListView
Source Files ¶
- get_by_entity_uid.go
- get_by_entity_uid_http_handler.go
- get_by_height.go
- get_by_height_http_handler.go
- get_for_min_height.go
- get_for_min_height_http_handler.go
- get_shares.go
- get_shares_for_all.go
- get_shares_for_all_http_handler.go
- get_shares_http_handler.go
- get_uptime.go
- get_uptime_http_handler.go
- get_voting_power.go
- get_voting_power_for_all.go
- get_voting_power_for_all_http_handler.go
- get_voting_power_http_handler.go
- views.go
Click to show internal directories.
Click to hide internal directories.