Documentation ¶
Index ¶
- func Client(r *http.Request) js.Json
- func GetBody(r *http.Request) (js.Json, error)
- func GetParam(r *http.Request, key string) *generic.Any
- func GetQuery(r *http.Request) js.Json
- func HTTPAlert(w http.ResponseWriter, r *http.Request, message string) error
- func HTTPApp(r chi.Router, path string, root http.FileSystem)
- func HTTPError(w http.ResponseWriter, r *http.Request, statusCode int, message string) error
- func ITEM(w http.ResponseWriter, r *http.Request, statusCode int, dt js.Item) error
- func ITEMS(w http.ResponseWriter, r *http.Request, statusCode int, dt js.Items) error
- func JSON(w http.ResponseWriter, r *http.Request, statusCode int, dt interface{}) error
- func ScanBody(r io.Reader) (js.Json, error)
- func ScanJson(value map[string]interface{}) (js.Json, error)
- func ScanStr(value string) (js.Json, error)
- func Stream(w http.ResponseWriter, r *http.Request, statusCode int, dt interface{}) error
- func WriteResponse(w http.ResponseWriter, statusCode int, e []byte) error
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPApp ¶
func HTTPApp(r chi.Router, path string, root http.FileSystem)
HTTPApp function to return a json response
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, statusCode int, e []byte) error
WriteResponse function to write a response
Types ¶
Click to show internal directories.
Click to hide internal directories.