block

package
v0.5.0-rc23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 NewGetBlockSummaryUseCase

func NewGetBlockSummaryUseCase(db *psql.Store) *getBlockSummaryUseCase

func NewGetBlockTimesHttpHandler

func NewGetBlockTimesHttpHandler(db *psql.Store, client figmentclient.Client) *getBlockTimesHttpHandler

func NewGetBlockTimesUseCase

func NewGetBlockTimesUseCase(db *psql.Store) *getBlockTimesUseCase

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"`
}

type Request

type Request struct {
	Height *int64 `form:"height" binding:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL