Documentation ¶
Index ¶
- func GetBody(r *http.Request) (et.Json, error)
- func GetParam(r *http.Request, key string) *et.Any
- func GetQuery(r *http.Request) et.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 et.Item) error
- func ITEMS(w http.ResponseWriter, r *http.Request, statusCode int, dt et.Items) error
- func JSON(w http.ResponseWriter, r *http.Request, statusCode int, dt interface{}) error
- func ScanBody(r io.Reader) (et.Json, error)
- func ScanJson(value map[string]interface{}) (et.Json, error)
- func ScanStr(value string) (et.Json, error)
- func Stream(w http.ResponseWriter, r *http.Request, statusCode int, dt interface{}) error
- func Unauthorized(w http.ResponseWriter, r *http.Request)
- 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)
func Unauthorized ¶ added in v1.0.8
func Unauthorized(w http.ResponseWriter, r *http.Request)
func WriteResponse ¶ added in v0.0.52
func WriteResponse(w http.ResponseWriter, statusCode int, e []byte) error
Types ¶
Click to show internal directories.
Click to hide internal directories.