Documentation ¶
Index ¶
- Variables
- func NewGetByAddressHttpHandler(db *psql.Store, c figmentclient.Client) *getByAddressHttpHandler
- func NewGetByAddressUseCase(db *psql.Store) *getByAddressUseCase
- func NewGetByHeightHttpHandler(cfg *config.Config, db *psql.Store, c figmentclient.Client) *getByHeightHttpHandler
- func NewGetByHeightUseCase(cfg *config.Config, db *psql.Store, client figmentclient.Client) *getByHeightUseCase
- func NewGetSummaryHttpHandler(db *psql.Store, c figmentclient.Client) *getSummaryHttpHandler
- func NewGetSummaryUseCase(db *psql.Store) *getSummaryUseCase
- type AggDetailsView
- type GetByEntityUidRequest
- type GetByHeightRequest
- type GetSummaryRequest
- type SeqListItem
- type SeqListView
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidIntervalPeriod = errors.New("invalid interval and/or period")
)
Functions ¶
func NewGetByAddressHttpHandler ¶
func NewGetByAddressHttpHandler(db *psql.Store, c figmentclient.Client) *getByAddressHttpHandler
func NewGetByAddressUseCase ¶
func NewGetByHeightUseCase ¶
func NewGetSummaryHttpHandler ¶
func NewGetSummaryHttpHandler(db *psql.Store, c figmentclient.Client) *getSummaryHttpHandler
func NewGetSummaryUseCase ¶
Types ¶
type AggDetailsView ¶
type AggDetailsView struct { *model.ModelWithTimestamps *model.Aggregate Address string `json:"address"` RecentName string `json:"recent_name"` RecentMetadataUrl string `json:"recent_metadata_url"` Uptime float64 `json:"uptime"` LastSequences []SeqListItem `json:"last_sequences"` DelegationActivity []model.AccountActivitySeq `json:"delegation_activity"` }
func ToAggDetailsView ¶
func ToAggDetailsView(m *model.ValidatorGroupAgg, validatorSequences []model.ValidatorGroupSeq, delegations []model.AccountActivitySeq) *AggDetailsView
type GetByEntityUidRequest ¶
type GetByHeightRequest ¶
type GetByHeightRequest struct {
Height *int64 `form:"height" binding:"-"`
}
type GetSummaryRequest ¶
type GetSummaryRequest struct { Interval types.SummaryInterval `form:"interval" binding:"required"` Period string `form:"period" binding:"required"` Address string `form:"address" binding:"-"` }
type SeqListItem ¶
type SeqListItem struct { *model.Sequence Address string `json:"address"` Name string `json:"name"` MetadataUrl string `json:"metadata_url"` Commission string `json:"commission"` ActiveVotes string `json:"active_votes"` PendingVotes string `json:"pending_votes"` MembersCount int `json:"members_count"` MembersAvgUptime float64 `json:"members_avg_uptime"` }
type SeqListView ¶
type SeqListView struct {
Items []SeqListItem `json:"items"`
}
func ToSeqListView ¶
func ToSeqListView(validatorGroupSeqs []model.ValidatorGroupSeq) SeqListView
Click to show internal directories.
Click to hide internal directories.