Documentation ¶
Index ¶
- Variables
- func NewGetBlockSummaryHttpHandler(db *psql.Store, client figmentclient.Client) *getBlockSummaryHttpHandler
- func NewGetBlockSummaryUseCase(db *psql.Store) *getBlockSummaryUseCase
- func NewGetBlockTimesHttpHandler(db *psql.Store, client figmentclient.Client) *getBlockTimesHttpHandler
- func NewGetBlockTimesUseCase(db *psql.Store) *getBlockTimesUseCase
- func NewGetByHeightHttpHandler(db *psql.Store, c figmentclient.Client) *getByHeightHttpHandler
- func NewGetByHeightUseCase(db *psql.Store, c figmentclient.Client) *getByHeightUseCase
- type DetailsView
- 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 NewGetBlockSummaryHttpHandler ¶
func NewGetBlockSummaryHttpHandler(db *psql.Store, client figmentclient.Client) *getBlockSummaryHttpHandler
func NewGetBlockTimesHttpHandler ¶
func NewGetBlockTimesHttpHandler(db *psql.Store, client figmentclient.Client) *getBlockTimesHttpHandler
func NewGetBlockTimesUseCase ¶
func NewGetByHeightHttpHandler ¶
func NewGetByHeightHttpHandler(db *psql.Store, c figmentclient.Client) *getByHeightHttpHandler
func NewGetByHeightUseCase ¶
func NewGetByHeightUseCase(db *psql.Store, c figmentclient.Client) *getByHeightUseCase
Types ¶
type DetailsView ¶
type DetailsView struct {
*figmentclient.Block
}
func ToDetailsView ¶
func ToDetailsView(rawBlock *figmentclient.Block) *DetailsView
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.