Documentation ¶
Index ¶
- func NewGetBlockTimeForIntervalUseCase(db *store.Store) *getBlockTimesForIntervalUseCase
- func NewGetBlockTimesForIntervalHttpHandler(db *store.Store, client *client.Client) *getBlockTimesForIntervalHttpHandler
- func NewGetBlockTimesHttpHandler(db *store.Store, client *client.Client) *getBlockTimesHttpHandler
- func NewGetBlockTimesUseCase(db *store.Store) *getBlockTimesUseCase
- func NewGetByHeightHttpHandler(db *store.Store, c *client.Client) *getByHeightHttpHandler
- func NewGetByHeightUseCase(db *store.Store) *getByHeightUseCase
- type DetailsView
- type GetBlockTimesForIntervalRequest
- type GetBlockTimesRequest
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetBlockTimesUseCase ¶
func NewGetByHeightUseCase ¶
Types ¶
type DetailsView ¶
type DetailsView struct { *model.Model *model.Sequence Validators []model.ValidatorSeq `json:"validators"` Transactions []model.TransactionSeq `json:"transactions"` }
func ToDetailsView ¶
func ToDetailsView(m *model.BlockSeq, vs []model.ValidatorSeq, ts []model.TransactionSeq) (*DetailsView, error)
type GetBlockTimesRequest ¶
type GetBlockTimesRequest struct {
Limit int64 `uri:"limit" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.