Documentation ¶
Index ¶
- func Decrypt(key, data []byte) ([]byte, error)
- func Encrypt(key, data []byte) ([]byte, error)
- func FindMax(array []int) int
- func FindNextVNode(ringStruct []int, virtualNodeMap map[int]string, virtualNodeLocation []int, ...) string
- func GetHash(s string) (uint32, error)
- func GetIndex(slice []int, value int) int
- func IntInSlice(s []int, v int) bool
- func MapHashToVNode(virtualNodeMap map[int]string, virtualNodeLocation []int, hashedValue uint32) string
- func MapHashToVNodeLoc(virtualNodeMap map[int]string, virtualNodeLocation []int, hashedValue uint32) int
- func NodePidFromVNode(virtualNodeName string) int
- func SetField(obj interface{}, name string, value interface{}) error
- func SliceRemoveInt(s []int, v int) ([]int, error)
- func StringHashToUint(hashedValue string) uint32
- func Zip(lists ...[]int) func() []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindNextVNode ¶
func IntInSlice ¶
IntInSlice check if a given integer v is in the slice of integers s
func MapHashToVNode ¶
func MapHashToVNodeLoc ¶
func NodePidFromVNode ¶
func SliceRemoveInt ¶
SliceRemoveInt removes an integer value from a slice of integer, if value does not exist, it will throw an error
func StringHashToUint ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.