Documentation ¶
Index ¶
- func Add(w http.ResponseWriter, r *http.Request)
- func Compare(a, b Fox) bool
- func Delete(w http.ResponseWriter, r *http.Request)
- func DeleteFoxFromStorage(uuid string)
- func FoxExists(uuid string) bool
- func List(w http.ResponseWriter, r *http.Request)
- func NewRouter() *mux.Router
- func Show(w http.ResponseWriter, r *http.Request)
- func Update(w http.ResponseWriter, r *http.Request)
- type Fox
- type Route
- type Routes
- type Statistics
- type UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(w http.ResponseWriter, r *http.Request)
Add is a handler for adding a fox to the registry
func Delete ¶
func Delete(w http.ResponseWriter, r *http.Request)
Delete is a handler for deleting a fox
func DeleteFoxFromStorage ¶
func DeleteFoxFromStorage(uuid string)
Deletes the fox, if it exists. Does nothing if it does not
func List ¶
func List(w http.ResponseWriter, r *http.Request)
List is a handler for returning a list of foxes
Types ¶
type Fox ¶
type Route ¶
type Statistics ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.