package
0.8.0-dev.2
Repository: https://github.com/datastream/libnetwork.git
Documentation: pkg.go.dev

# Functions

DefaultScopes returns a map of default scopes and it's config for clients to use.
Key provides convenient method to create a Key.
NewDataStore creates a new instance of LibKV data store.
NewDataStoreFromConfig creates a new instance of LibKV data store starting from the datastore config data.
NewMockStore creates a Map backed Datastore that is useful for mocking.
ParseKey provides convenient method to unpack the key to complement the Key function.

# Constants

EndpointKeyPrefix is the prefix for endpoint key in the kv store.
GlobalScope indicates to store the KV object in global datastore such as consul/etcd/zookeeper.
LocalScope indicates to store the KV object in local datastore such as boltdb.
NetworkKeyPrefix is the prefix for network key in the kv store.

# Variables

ErrKeyModified is raised for an atomic update when the update is working on a stale state.
ErrKeyModified is raised for an atomic update when the update is working on a stale state.
ErrNotImplmented exported.

# Structs

MockData exported.
MockStore exported.
ScopeCfg represents Datastore configuration.
ScopeClientCfg represents Datastore Client-only mode configuration.

# Interfaces

DataStore exported.
KVConstructor interface defines methods which can construct a KVObject from another.
KVObject is Key/Value interface used by objects to be part of the DataStore.