package v1
import "github.com/coreos/etcd/server/v1"
Index ¶
- func DeleteKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error
- func GetKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error
- func SetKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error
- func WatchKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error
- type Server
Functions ¶
func DeleteKeyHandler ¶
Removes a key from the store.
func GetKeyHandler ¶
Retrieves the value for a given key.
func SetKeyHandler ¶
Sets the value for a given key.
func WatchKeyHandler ¶
Watches a given key prefix for changes.
Types ¶
type Server ¶
type Server interface { CommitIndex() uint64 Term() uint64 Store() store.Store Dispatch(raft.Command, http.ResponseWriter, *http.Request) error }
The Server interface provides all the methods required for the v1 API.
Source Files ¶
delete_key_handler.go get_key_handler.go set_key_handler.go v1.go watch_key_handler.go
Directories ¶
Path | Synopsis |
---|---|
server/v1/tests |
- Version
- v0.4.6
- Published
- Jul 29, 2014
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 16 minutes ago –
Tools for package owners.