Documentation ¶
Index ¶
- Variables
- func APIServer(params Params) http.Handler
- func Areas(areaRegistry registry.AreaRegistry) func(r chi.Router)
- func Commodities(params Params) func(r chi.Router)
- func GetContentType(s string) render.ContentType
- func GetRequestContentType(r *http.Request) render.ContentType
- func JSONAPIAwareDecoder(r *http.Request, v any) error
- func Locations(locationRegistry registry.LocationRegistry) func(r chi.Router)
- func NewInternalServerError(err error) jsonapi.Error
- func NewNotFoundError(err error) jsonapi.Error
- func NewUnprocessableEntityError(err error) jsonapi.Error
- func Uploads(params Params) func(r chi.Router)
- type Params
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Areas ¶
func Areas(areaRegistry registry.AreaRegistry) func(r chi.Router)
func Commodities ¶
func Commodities(params Params) func(r chi.Router)
func GetContentType ¶
func GetContentType(s string) render.ContentType
func GetRequestContentType ¶
func GetRequestContentType(r *http.Request) render.ContentType
GetRequestContentType is a helper function that returns ContentType based on context or request headers.
func Locations ¶
func Locations(locationRegistry registry.LocationRegistry) func(r chi.Router)
func NewInternalServerError ¶
func NewNotFoundError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.