slotqueue

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue interface {
	// Next returns the next slot with its duties at its time
	RegisterToNext(pubKey []byte) (pubsub.SubjectChannel, error)

	// Schedule schedules execution of the given slot and puts it into the queue
	Schedule(pubKey []byte, slot uint64, duty *beacon.Duty) error
	// contains filtered or unexported methods
}

Queue represents the behavior of the slot queue

func New

func New(network core.Network, logger *zap.Logger) Queue

New is the constructor of queue

type SlotEvent added in v0.0.4

type SlotEvent struct {
	Slot uint64
	Duty *beacon.Duty
	Ok   bool
}

SlotEvent represents the notify event fire for each pubkey subject with the proper duty

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL