pulsar

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPulse

func NewPulse(previousPulseNumber uint32, entropyGenerator EntropyGenerator) *core.Pulse

Create a new pulse with using of custom Entropy Generator

Types

type EntropyGenerator

type EntropyGenerator interface {
	GenerateEntropy() core.Entropy
}

type Pulsar

type Pulsar struct {
	Sock       net.Listener
	Neighbours map[string]net.Conn
}

func NewPulsar

func NewPulsar(configuration configuration.Pulsar) *Pulsar

func (*Pulsar) Close

func (pulsar *Pulsar) Close()

func (*Pulsar) ConnectToNeighbour

func (pulsar *Pulsar) ConnectToNeighbour(address string, connectionType string) error

func (*Pulsar) Listen

func (pulsar *Pulsar) Listen()

func (*Pulsar) Send

func (pulsar *Pulsar) Send(address string, data interface{})

type StandardEntropyGenerator

type StandardEntropyGenerator struct {
}

func (*StandardEntropyGenerator) GenerateEntropy

func (generator *StandardEntropyGenerator) GenerateEntropy() core.Entropy

Jump to

Keyboard shortcuts

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