package v2
import "github.com/coreos/etcd/server/v2"
Index ¶
- func CreateHandler(w http.ResponseWriter, req *http.Request, s Server, key string, dir bool, value string, expireTime time.Time) error
- func DeleteHandler(w http.ResponseWriter, req *http.Request, s Server) error
- func GetHandler(w http.ResponseWriter, req *http.Request, s Server) error
- func PostHandler(w http.ResponseWriter, req *http.Request, s Server) error
- func PutHandler(w http.ResponseWriter, req *http.Request, s Server) error
- func SetHandler(w http.ResponseWriter, req *http.Request, s Server, key string, dir bool, value string, expireTime time.Time) error
- func UpdateHandler(w http.ResponseWriter, req *http.Request, s Server, key, value string, expireTime time.Time) error
- type Server
Functions ¶
func CreateHandler ¶
func CreateHandler(w http.ResponseWriter, req *http.Request, s Server, key string, dir bool, value string, expireTime time.Time) error
func DeleteHandler ¶
func GetHandler ¶
func PostHandler ¶
func PutHandler ¶
func SetHandler ¶
func SetHandler(w http.ResponseWriter, req *http.Request, s Server, key string, dir bool, value string, expireTime time.Time) error
func UpdateHandler ¶
func UpdateHandler(w http.ResponseWriter, req *http.Request, s Server, key, value string, expireTime time.Time) error
Types ¶
type Server ¶
type Server interface { State() string Leader() string CommitIndex() uint64 Term() uint64 PeerURL(string) (string, bool) ClientURL(string) (string, bool) Store() store.Store Dispatch(raft.Command, http.ResponseWriter, *http.Request) error }
The Server interface provides all the methods required for the v2 API.
Source Files ¶
delete_handler.go get_handler.go post_handler.go put_handler.go v2.go
Directories ¶
Path | Synopsis |
---|---|
server/v2/tests |
- Version
- v0.4.8
- Published
- Mar 23, 2015
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 16 minutes ago –
Tools for package owners.