reconstruction

package
v0.0.0-...-d1fccd7 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listener

func Listener(sync *replication.Sync, frame *network.Frame, input <-chan *network.Blobs) <-chan *network.Blobs

Listener listens to the incoming requests and sends missing blobs to the nodes

func Reconstruct

func Reconstruct(frame *network.Frame, input <-chan *network.Blobs, sync *replication.Sync, outputConn net.PacketConn) chan *network.Blobs

Reconstruct runs the reconstruction fo the missing blobs

Types

type Request

type Request struct {
	Index uint64
	From  *replication.NodeData
}

Request is a struct to request missing blobs from other nodes.

func (*Request) Deserialize

func (r *Request) Deserialize(blob *network.Blob)

Deserialize deserializes request structure from blob

func (*Request) Equals

func (r *Request) Equals(r2 *Request) bool

Equals compares to Request struct

func (*Request) Serialize

func (r *Request) Serialize() *network.Blob

Serialize serializes the request structure into the blob

Jump to

Keyboard shortcuts

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