package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

MakePutRecord creates a dht record for the given key/value pair.
SplitKey takes a key in the form `/$namespace/$path` and splits it into `$namespace` and `$path`.

# Variables

ErrInvalidRecordType is returned if a DHTRecord keys prefix is not found in the Validator map of the DHT.

# Structs

ErrBetterRecord is returned by a subsystem when it fails because it found a better record.
PublicKeyValidator is a Validator that validates public keys.

# Interfaces

Validator is an interface that should be implemented by record validators.

# Type aliases

NamespacedValidator is a validator that delegates to sub-validators by namespace.