Documentation ¶
Overview ¶
distkv provides a simple and secure distributed key-value store. The keys and associated values are changed via distributed consensus over an authenticated ssh channel. This means that the values are changed only when a majority of nodes in the cluster agree on the new value.
Distributed consensus is provided via the Raft algorithm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store is a simple key-value store, where all changes are made via Raft consensus.
func NewStore ¶
New returns a new Store. If debug is true, informational and debug messages are printed to os.Stderr
func (*Store) Get ¶
Get returns the value for the given key. TODO implement strongly consistent read with extra argument or func
func (*Store) Join ¶
Join joins a node reachable under raftAddr, to the cluster lead by the node reachable under joinAddr. The joined node must be ready to respond to Raft communications at that raftAddr.
Directories ¶
Path | Synopsis |
---|---|
example
|
|
http-rest/httpd
Package httpd provides the HTTP server for accessing the distributed key-value store.
|
Package httpd provides the HTTP server for accessing the distributed key-value store. |