Documentation ¶
Index ¶
- func LoadSnapshot(file ioutil2.SectionReader, store keyvalue.Beginner, logger log.Logger) error
- type Block
- type BlockAnchor
- type BlockState
- func (b *BlockState) ChangeSet() record.Record
- func (b *BlockState) Commit() error
- func (b *BlockState) DidCompleteMajorBlock() (uint64, time.Time, bool)
- func (b *BlockState) DidUpdateValidators() ([]*execute.ValidatorUpdate, bool)
- func (b *BlockState) Discard()
- func (b *BlockState) Hash() ([32]byte, error)
- func (b *BlockState) IsEmpty() bool
- func (b *BlockState) Params() execute.BlockParams
- type BlockSummary
- type ChangeSet
- func (c *ChangeSet) Begin() *ChangeSet
- func (c *ChangeSet) Commit() error
- func (c *ChangeSet) Discard()
- func (c *ChangeSet) IsDirty() bool
- func (c *ChangeSet) Key() *record.Key
- func (c *ChangeSet) LastBlock() values.Value[*LastBlock]
- func (c *ChangeSet) Partition(id string) *database.Batch
- func (c *ChangeSet) Pending(partition string) *Pending
- func (c *ChangeSet) Resolve(key *record.Key) (record.Record, *record.Key, error)
- func (c *ChangeSet) Summary(hash [32]byte) *Summary
- func (c *ChangeSet) Walk(opts record.WalkOptions, fn record.WalkFunc) error
- type Collector
- type CollectorOptions
- type DidCollectBlock
- type Executor
- func (x *Executor) Begin(params execute.BlockParams) (execute.Block, error)
- func (*Executor) EnableTimers()
- func (x *Executor) Init(validators []*execute.ValidatorUpdate) (additional []*execute.ValidatorUpdate, err error)
- func (x *Executor) LastBlock() (*execute.BlockParams, [32]byte, error)
- func (*Executor) StoreBlockTimers(ds *logging.DataSet)
- func (x *Executor) Validate(envelope *messaging.Envelope, recheck bool) ([]*protocol.TransactionStatus, error)
- type ExecutorFor
- type ExecutorOptions
- type LastBlock
- func (v *LastBlock) Copy() *LastBlock
- func (v *LastBlock) CopyAsInterface() interface{}
- func (v *LastBlock) Equal(u *LastBlock) bool
- func (v *LastBlock) IsValid() error
- func (v *LastBlock) MarshalBinary() ([]byte, error)
- func (v *LastBlock) UnmarshalBinary(data []byte) error
- func (v *LastBlock) UnmarshalBinaryFrom(rd io.Reader) error
- type MessageContext
- type MessageExecutor
- type Pending
- func (c *Pending) Commit() error
- func (c *Pending) IsDirty() bool
- func (c *Pending) Key() *record.Key
- func (c *Pending) OnBlock(index uint64) values.Value[[32]byte]
- func (c *Pending) Resolve(key *record.Key) (record.Record, *record.Key, error)
- func (c *Pending) Walk(opts record.WalkOptions, fn record.WalkFunc) error
- type Summary
- func (c *Summary) Commit() error
- func (c *Summary) IsDirty() bool
- func (c *Summary) Key() *record.Key
- func (c *Summary) Main() values.Value[*messaging.BlockSummary]
- func (c *Summary) Resolve(key *record.Key) (record.Record, *record.Key, error)
- func (c *Summary) Signatures() values.Set[protocol.KeySignature]
- func (c *Summary) Walk(opts record.WalkOptions, fn record.WalkFunc) error
- type SummaryContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSnapshot ¶ added in v1.2.10
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func (*Block) Params ¶
func (b *Block) Params() execute.BlockParams
type BlockAnchor ¶
type BlockAnchor struct{}
func (BlockAnchor) Process ¶
func (x BlockAnchor) Process(batch *ChangeSet, ctx *MessageContext) (err error)
func (BlockAnchor) Validate ¶
func (x BlockAnchor) Validate(batch *ChangeSet, ctx *MessageContext) error
type BlockState ¶
type BlockState struct {
// contains filtered or unexported fields
}
func (*BlockState) ChangeSet ¶ added in v1.1.1
func (b *BlockState) ChangeSet() record.Record
func (*BlockState) Commit ¶
func (b *BlockState) Commit() error
func (*BlockState) DidCompleteMajorBlock ¶
func (b *BlockState) DidCompleteMajorBlock() (uint64, time.Time, bool)
func (*BlockState) DidUpdateValidators ¶ added in v1.2.10
func (b *BlockState) DidUpdateValidators() ([]*execute.ValidatorUpdate, bool)
func (*BlockState) Discard ¶
func (b *BlockState) Discard()
func (*BlockState) Hash ¶
func (b *BlockState) Hash() ([32]byte, error)
func (*BlockState) IsEmpty ¶
func (b *BlockState) IsEmpty() bool
func (*BlockState) Params ¶
func (b *BlockState) Params() execute.BlockParams
type BlockSummary ¶
type BlockSummary struct{}
func (BlockSummary) Process ¶
func (x BlockSummary) Process(batch *ChangeSet, ctx *MessageContext) (err error)
func (BlockSummary) Validate ¶
func (x BlockSummary) Validate(batch *ChangeSet, ctx *MessageContext) error
type ChangeSet ¶
type ChangeSet struct {
// contains filtered or unexported fields
}
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func StartCollector ¶
func StartCollector(opts CollectorOptions) (*Collector, error)
type CollectorOptions ¶
type DidCollectBlock ¶
type DidCollectBlock struct {
Summary *messaging.BlockSummary
}
func (DidCollectBlock) IsEvent ¶
func (DidCollectBlock) IsEvent()
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(opts ExecutorOptions) (*Executor, error)
func (*Executor) EnableTimers ¶
func (*Executor) EnableTimers()
func (*Executor) Init ¶ added in v1.2.0
func (x *Executor) Init(validators []*execute.ValidatorUpdate) (additional []*execute.ValidatorUpdate, err error)
func (*Executor) StoreBlockTimers ¶
type ExecutorFor ¶
type ExecutorOptions ¶
type LastBlock ¶
type LastBlock struct { Index uint64 `json:"index,omitempty" form:"index" query:"index" validate:"required"` Time time.Time `json:"time,omitempty" form:"time" query:"time" validate:"required"` // contains filtered or unexported fields }
func (*LastBlock) CopyAsInterface ¶
func (v *LastBlock) CopyAsInterface() interface{}
func (*LastBlock) MarshalBinary ¶
func (*LastBlock) UnmarshalBinary ¶
type MessageContext ¶
type MessageContext struct {
// contains filtered or unexported fields
}
func (*MessageContext) Type ¶
func (m *MessageContext) Type() messaging.MessageType
type MessageExecutor ¶
type MessageExecutor = ExecutorFor[messaging.MessageType, *MessageContext]
type Pending ¶
type Pending struct {
// contains filtered or unexported fields
}
type Summary ¶
type Summary struct {
// contains filtered or unexported fields
}
func (*Summary) Signatures ¶
func (c *Summary) Signatures() values.Set[protocol.KeySignature]
type SummaryContext ¶ added in v1.2.10
type SummaryContext struct { *MessageContext // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.