erasure

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReedSolomon

func ReedSolomon(fpath string) ([]string, int, int, error)

ReedSolomon uses reed-solomon algorithm to redundancy files Return:

  1. All file blocks (sorted sequentially)
  2. Number of data blocks
  3. Number of redundant blocks
  4. Error message

func ReedSolomon_Restore

func ReedSolomon_Restore(dir, fid string, datashards, rdushards int) error

ReedSolomon_Restore uses reed-solomon algorithm to restore files which are located in the dir directory and named fid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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