Documentation
¶
Index ¶
- func CreateHandler(w http.ResponseWriter, req *http.Request, s Server, key string, dir bool, ...) 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, ...) error
- func UpdateHandler(w http.ResponseWriter, req *http.Request, s Server, key, value string, ...) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
func DeleteHandler ¶
func GetHandler ¶
func PostHandler ¶
func PutHandler ¶
func SetHandler ¶
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.
Click to show internal directories.
Click to hide internal directories.