Documentation ¶
Index ¶
- Variables
- func IsValidChain(blocks []*Block) bool
- type Action
- type Block
- type BlockSet
- func (bs *BlockSet) Add(b *Block)
- func (bs *BlockSet) Latest() *Block
- func (bs *BlockSet) LatestMessage() []byte
- func (bs *BlockSet) Len() int
- func (bs *BlockSet) List() []*Block
- func (bs *BlockSet) MarshalJSON() ([]byte, error)
- func (bs *BlockSet) NextBlock(data string) *Block
- func (bs *BlockSet) SetBlocks(blocks []*Block)
- type ByIndex
- type ResponseBlockchain
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewBlockSet)
Functions ¶
func IsValidChain ¶
Types ¶
type Block ¶
type BlockSet ¶
type BlockSet struct {
// contains filtered or unexported fields
}
func NewBlockSet ¶
func (*BlockSet) LatestMessage ¶
func (*BlockSet) MarshalJSON ¶
type ResponseBlockchain ¶
Click to show internal directories.
Click to hide internal directories.