Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntropyGenerator ¶
type EntropyGenerator interface {
GenerateEntropy() Entropy
}
type Pulsar ¶
func NewPulsar ¶
func NewPulsar(configuration configuration.Pulsar) *Pulsar
func (*Pulsar) ConnectToNeighbour ¶
type Pulse ¶
Base data struct for a pulse
func NewPulse ¶
func NewPulse(previousPulseNumber uint64, entropyGenerator EntropyGenerator) *Pulse
Create a new pulse with using of custom Entropy Generator
type StandardEntropyGenerator ¶
type StandardEntropyGenerator struct { }
func (*StandardEntropyGenerator) GenerateEntropy ¶
func (generator *StandardEntropyGenerator) GenerateEntropy() Entropy
Click to show internal directories.
Click to hide internal directories.