Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BackendsIndex = func(backends domain.Backends) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { backendsJSON, err := json.Marshal(backends.AsJSON()) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } _, err = w.Write(backendsJSON) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } }) }
Functions ¶
Types ¶
Directories
¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.