Documentation ¶ Index ¶ func NewProvider(opts ...options.Option[Gadget]) module.Provider[*engine.Engine, slotgadget.Gadget] func WithSlotFinalizationThreshold(threshold float64) options.Option[Gadget] type Gadget func (g *Gadget) Reset(targetSlot iotago.SlotIndex) func (g *Gadget) Shutdown() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewProvider ¶ func NewProvider(opts ...options.Option[Gadget]) module.Provider[*engine.Engine, slotgadget.Gadget] func WithSlotFinalizationThreshold ¶ func WithSlotFinalizationThreshold(threshold float64) options.Option[Gadget] Types ¶ type Gadget ¶ type Gadget struct { module.Module // contains filtered or unexported fields } func (*Gadget) Reset ¶ func (g *Gadget) Reset(targetSlot iotago.SlotIndex) Reset resets the component to a clean state as if it was created at the last commitment. It accepts a targetSlot as a parameter because it doesn't track that value internally. func (*Gadget) Shutdown ¶ func (g *Gadget) Shutdown() Source Files ¶ View all Source files gadget.go options.go Click to show internal directories. Click to hide internal directories.