Back to godoc.org

Package v1

v0.2.0
Latest Go to latest

The latest major version is .

Published: Dec 23, 2013 | License: Apache-2.0 | Module: go.etcd.io/etcd

Index

func DeleteKeyHandler

func DeleteKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error

Removes a key from the store.

func GetKeyHandler

func GetKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error

Retrieves the value for a given key.

func SetKeyHandler

func SetKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error

Sets the value for a given key.

func WatchKeyHandler

func WatchKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error

Watches a given key prefix for changes.

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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier