Documentation ¶
Overview ¶
Package httpd provides the HTTP server for accessing the distributed key-value store. It also provides the endpoint for other nodes to join an existing cluster.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides HTTP service.
type Store ¶
type Store interface { // Get returns the value for the given key. Get(key string) (string, error) // Set sets the value for the given key, via distributed consensus. Set(key, value string) error // Delete removes the given key, via distributed consensus. Delete(key string) error // Join joins the node, identitifed by nodeID and reachable at addr, to the cluster. Join(nodeID string, addr string) error // GetInfo returns the information of raft store GetInfo() (*store.StoreInfo, error) }
Store is the interface Raft-backed key-value stores must implement.
Click to show internal directories.
Click to hide internal directories.