Documentation ¶
Index ¶
- Constants
- type ConfigOption
- func WithBacklogTTLSlots(slots int) ConfigOption
- func WithLogAttacherStats(logAttacherStats bool) ConfigOption
- func WithMaxBranches(maxBranches int) ConfigOption
- func WithMaxTagAlongInputs(maxInputs int) ConfigOption
- func WithMilestonesTTLSlots(slots int) ConfigOption
- func WithName(name string) ConfigOption
- func WithPace(pace int) ConfigOption
- type ConfigOptions
- type Info
- type Sequencer
- func (seq *Sequencer) Backlog() *backlog.InputBacklog
- func (seq *Sequencer) BacklogTTLSlots() int
- func (seq *Sequencer) ControllerPrivateKey() ed25519.PrivateKey
- func (seq *Sequencer) Ctx() context.Context
- func (seq *Sequencer) Info() Info
- func (seq *Sequencer) Log() *zap.SugaredLogger
- func (seq *Sequencer) LogMilestoneSubmitDefault(ms *vertex.WrappedTx)
- func (seq *Sequencer) MaxTagAlongOutputs() int
- func (seq *Sequencer) MilestonesTTLSlots() int
- func (seq *Sequencer) OnExit(fun func())
- func (seq *Sequencer) OnMilestoneSubmitted(fun func(seq *Sequencer, ms *vertex.WrappedTx))
- func (seq *Sequencer) SequencerID() ledger.ChainID
- func (seq *Sequencer) SequencerName() string
- func (seq *Sequencer) Start()
- func (seq *Sequencer) Stop()
Constants ¶
View Source
const ( DefaultMaxTagAlongInputs = 20 MinimumBacklogTTLSlots = 10 MinimumMilestonesTTLSlots = 10 )
View Source
const TraceTag = "sequencer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOption ¶
type ConfigOption func(options *ConfigOptions)
func WithBacklogTTLSlots ¶
func WithBacklogTTLSlots(slots int) ConfigOption
func WithLogAttacherStats ¶
func WithLogAttacherStats(logAttacherStats bool) ConfigOption
func WithMaxBranches ¶
func WithMaxBranches(maxBranches int) ConfigOption
func WithMaxTagAlongInputs ¶
func WithMaxTagAlongInputs(maxInputs int) ConfigOption
func WithMilestonesTTLSlots ¶
func WithMilestonesTTLSlots(slots int) ConfigOption
func WithName ¶
func WithName(name string) ConfigOption
func WithPace ¶
func WithPace(pace int) ConfigOption
type ConfigOptions ¶
type Sequencer ¶
func New ¶
func New(glb *workflow.Workflow, seqID ledger.ChainID, controllerKey ed25519.PrivateKey, opts ...ConfigOption) (*Sequencer, error)
func (*Sequencer) Backlog ¶
func (seq *Sequencer) Backlog() *backlog.InputBacklog
func (*Sequencer) BacklogTTLSlots ¶
func (*Sequencer) ControllerPrivateKey ¶
func (seq *Sequencer) ControllerPrivateKey() ed25519.PrivateKey
func (*Sequencer) Log ¶
func (seq *Sequencer) Log() *zap.SugaredLogger
func (*Sequencer) LogMilestoneSubmitDefault ¶
func (*Sequencer) MaxTagAlongOutputs ¶
func (*Sequencer) MilestonesTTLSlots ¶
func (*Sequencer) OnMilestoneSubmitted ¶
func (*Sequencer) SequencerID ¶
func (*Sequencer) SequencerName ¶
Click to show internal directories.
Click to hide internal directories.