Documentation ¶
Index ¶
- func CreateUser(w http.ResponseWriter, r *http.Request)
- func DeleteUser(w http.ResponseWriter, r *http.Request)
- func ExampleKV_put()
- func ExampleWatcher_watchWithPrefix()
- func GetUser(w http.ResponseWriter, r *http.Request)
- func UpdateUser(w http.ResponseWriter, r *http.Request)
- type AuthenticationMiddleware
- type HTTPResponse
- func HTTPAlreadyExists(msg string) *HTTPResponse
- func HTTPBadRequest(msg string) *HTTPResponse
- func HTTPCreated(msg string) *HTTPResponse
- func HTTPDeleted(msg string) *HTTPResponse
- func HTTPGet(msg string) *HTTPResponse
- func HTTPInternalServerError(msg string) *HTTPResponse
- func HTTPNotFound(msg string) *HTTPResponse
- func HTTPUpdated(msg string) *HTTPResponse
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(w http.ResponseWriter, r *http.Request)
func DeleteUser ¶
func DeleteUser(w http.ResponseWriter, r *http.Request)
func ExampleKV_put ¶
func ExampleKV_put()
func ExampleWatcher_watchWithPrefix ¶
func ExampleWatcher_watchWithPrefix()
func UpdateUser ¶
func UpdateUser(w http.ResponseWriter, r *http.Request)
Types ¶
type AuthenticationMiddleware ¶
type AuthenticationMiddleware struct {
// contains filtered or unexported fields
}
func (*AuthenticationMiddleware) Middleware ¶
func (middleware *AuthenticationMiddleware) Middleware(next http.Handler) http.Handler
func (*AuthenticationMiddleware) Populate ¶
func (middleware *AuthenticationMiddleware) Populate()
type HTTPResponse ¶
type HTTPResponse struct {
// contains filtered or unexported fields
}
func HTTPAlreadyExists ¶
func HTTPAlreadyExists(msg string) *HTTPResponse
func HTTPBadRequest ¶
func HTTPBadRequest(msg string) *HTTPResponse
func HTTPCreated ¶
func HTTPCreated(msg string) *HTTPResponse
func HTTPDeleted ¶
func HTTPDeleted(msg string) *HTTPResponse
func HTTPGet ¶
func HTTPGet(msg string) *HTTPResponse
func HTTPInternalServerError ¶
func HTTPInternalServerError(msg string) *HTTPResponse
func HTTPNotFound ¶
func HTTPNotFound(msg string) *HTTPResponse
func HTTPUpdated ¶
func HTTPUpdated(msg string) *HTTPResponse
Click to show internal directories.
Click to hide internal directories.