hasher

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher struct{}

A Hasher computes the zone and zhash of identifiables and is used by a sharder.Sharder.

func (*Hasher) Hash

func (t *Hasher) Hash(z sharder.Shardable) error

Hash computes and sets the zone and zhash for the given sharder.Shardable.

func (*Hasher) Zone

func (t *Hasher) Zone(identity elemental.Identity) int

Zone returns the zone for the given identity.

Jump to

Keyboard shortcuts

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