Documentation ¶
Index ¶
- Variables
- func NewGetBlockSummaryHttpHandler(db *store.Store, client *client.Client) *getBlockSummaryHttpHandler
- func NewGetBlockSummaryUseCase(db *store.Store) *getBlockSummaryUseCase
- 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, c *client.Client) *getByHeightUseCase
- type DetailsView
- type ExtrinsicDetailsView
- type GetBlockTimesForIntervalRequest
- type GetBlockTimesRequest
- type Request
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidIntervalPeriod = errors.New("invalid interval and/or period")
)
Functions ¶
func NewGetBlockTimesUseCase ¶
Types ¶
type DetailsView ¶
type DetailsView struct { Height int64 `json:"height"` Time types.Time `json:"time"` Hash string `json:"hash"` ParentHash string `json:"parent_hash"` ExtrinsicsRoot string `json:"extrinsics_root"` StateRoot string `json:"state_root"` Extrinsics []ExtrinsicDetailsView `json:"extrinsics"` }
func ToDetailsView ¶
func ToDetailsView(rawResponse *blockpb.GetByHeightResponse) *DetailsView
type ExtrinsicDetailsView ¶
type ExtrinsicDetailsView struct { ExtrinsicIndex int64 `json:"extrinsic_index"` Hash string `json:"hash"` IsSigned bool `json:"is_signed"` Signature string `json:"signature"` PublicKey string `json:"public_key"` Nonce int64 `json:"nonce"` Method string `json:"method"` Section string `json:"section"` Args string `json:"args"` IsSuccess bool `json:"is_success"` PartialFee string `json:"partial_fee"` Tip string `json:"tip"` }
type GetBlockTimesForIntervalRequest ¶
type GetBlockTimesForIntervalRequest struct { Interval types.SummaryInterval `form:"interval" binding:"required"` Period string `form:"period" binding:"required"` }
type GetBlockTimesRequest ¶
type GetBlockTimesRequest struct {
Limit int64 `uri:"limit" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.