block

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetBlockTimeForIntervalUseCase

func NewGetBlockTimeForIntervalUseCase(db *store.Store) *getBlockTimesForIntervalUseCase

func NewGetBlockTimesForIntervalHttpHandler

func NewGetBlockTimesForIntervalHttpHandler(db *store.Store, client *client.Client) *getBlockTimesForIntervalHttpHandler

func NewGetBlockTimesHttpHandler

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

func NewGetBlockTimesUseCase

func NewGetBlockTimesUseCase(db *store.Store) *getBlockTimesUseCase

func NewGetByHeightHttpHandler

func NewGetByHeightHttpHandler(db *store.Store, c *client.Client) *getByHeightHttpHandler

func NewGetByHeightUseCase

func NewGetByHeightUseCase(db *store.Store) *getByHeightUseCase

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 GetBlockTimesForIntervalRequest

type GetBlockTimesForIntervalRequest struct {
	Interval string `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