Documentation
¶
Index ¶
- type Block
- type BlockCommittedCouncilNode
- type BlockIdentity
- type Blocks
- func (blocksView *Blocks) Count() (int64, error)
- func (blocksView *Blocks) FindBy(identity *BlockIdentity) (*Block, error)
- func (blocksView *Blocks) Insert(block *Block) error
- func (blocksView *Blocks) List(order BlocksListOrder, pagination *pagination.Pagination) ([]Block, *pagination.PaginationResult, error)
- func (blocksView *Blocks) Search(keyword string) ([]Block, error)
- type BlocksListOrder
- type RdbBlockCommittedCouncilNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
Height int64 `json:"blockHeight" fake:"{+int64}"`
Hash string `json:"blockHash" fake:"{blockhash}"`
Time utctime.UTCTime `json:"blockTime" fake:"{utctime}"`
AppHash string `json:"appHash" fake:"{apphash}"`
TransactionCount int `json:"transactionCount" fake:"{number:0,2147483647}"`
CommittedCouncilNodes []BlockCommittedCouncilNode `json:"committedCouncilNodes" fakesize:"3"`
}
type BlockIdentity ¶
type Blocks ¶
type Blocks struct {
// contains filtered or unexported fields
}
Block projection view implemented by relational database
func (*Blocks) List ¶
func (blocksView *Blocks) List(order BlocksListOrder, pagination *pagination.Pagination) ([]Block, *pagination.PaginationResult, error)
type BlocksListOrder ¶
type RdbBlockCommittedCouncilNode ¶
type RdbBlockCommittedCouncilNode struct {
Address string `json:"address"`
Time int64 `json:"time"`
Signature string `json:"signature"`
IsProposer bool `json:"isProposer"`
}
func NewRdbBlockCommittedCouncilNodeFromRaw ¶
func NewRdbBlockCommittedCouncilNodeFromRaw(raw *BlockCommittedCouncilNode) *RdbBlockCommittedCouncilNode
func (*RdbBlockCommittedCouncilNode) ToRaw ¶
func (node *RdbBlockCommittedCouncilNode) ToRaw() *BlockCommittedCouncilNode
Click to show internal directories.
Click to hide internal directories.