utils

package
v0.0.0-...-406b98a Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Reed-Solomon code with (n, k) parameters
	N          int = 6
	K          int = 3
	L          int = 3
	StripeSize int = 4096 * 3 //bytes redis
	NumOfSlots int = 16384
)

Variables

View Source
var MasterNodes = [3]string{"localhost:50052", "localhost:50053", "localhost:50054"}
View Source
var Weights = [3]string{"100", "100", "100"}

Functions

func Decode

func Decode(n int, k int, shards [][]byte) ([]byte, error)

func Encode

func Encode(n int, k int, input []byte) ([][]byte, error)

func GetHash

func GetHash(input []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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