| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This folder contains usage examples of the Reed-Solomon encoder.
Shows basic use of the encoder, and will encode a single file into a number of data and parity shards. This is meant as an example and is not meant for production use since there is a number of shotcomings noted below.
To build an executable use:
go build simple-decoder.go
go build simple-encoder.goThere are streaming examples of the same functionality, which streams data instead of keeping it in memory.
To build the executables use:
go build stream-decoder.go
go build stream-encoder.goThe solution for this is to save a metadata file containing:
If you save these properties, you should abe able to detect file corruption in a shard and be able to reconstruct your data if you have the needed number of shards left.
| Back | FazBrowse Home | New Git URL |